mirror of
				https://github.com/owntone/owntone-server.git
				synced 2025-10-29 15:55:02 -04:00 
			
		
		
		
	Silence non-const vs. const warning with FFmpeg 0.6
This commit is contained in:
		
							parent
							
								
									cbc3605425
								
							
						
					
					
						commit
						f1ab254b47
					
				| @ -301,7 +301,12 @@ artwork_rescale(AVFormatContext *src_ctx, int s, int out_w, int out_h, struct ev | ||||
|     } | ||||
| 
 | ||||
|   /* Scale */ | ||||
| #if (LIBSWSCALE_VERSION_MAJOR == 0 && LIBSWSCALE_VERSION_MINOR >= 9) | ||||
|   /* FFmpeg 0.6 */ | ||||
|   sws_scale(swsctx, (const uint8_t * const *)i_frame->data, i_frame->linesize, 0, src->height, o_frame->data, o_frame->linesize); | ||||
| #else | ||||
|   sws_scale(swsctx, i_frame->data, i_frame->linesize, 0, src->height, o_frame->data, o_frame->linesize); | ||||
| #endif | ||||
| 
 | ||||
|   sws_freeContext(swsctx); | ||||
|   av_free_packet(&pkt); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user