You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	avcodec/mjpegbdec: Don't create unnecessary AVFrame reference
MJPEG-B is an intra-codec, so it makes no sense to keep the reference. It is unused lateron anyway. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
		
				
					committed by
					
						 Paul B Mahol
						Paul B Mahol
					
				
			
			
				
	
			
			
			
						parent
						
							a54da0831c
						
					
				
				
					commit
					2f9fa7e3e9
				
			| @@ -142,8 +142,8 @@ read_header: | ||||
|         return buf_size; | ||||
|     } | ||||
|  | ||||
|     if ((ret = av_frame_ref(rframe, s->picture_ptr)) < 0) | ||||
|         return ret; | ||||
|     av_frame_move_ref(rframe, s->picture_ptr); | ||||
|     s->got_picture = 0; | ||||
|     *got_frame = 1; | ||||
|  | ||||
|     if (!s->lossless && avctx->debug & FF_DEBUG_QP) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user