mirror of
				https://github.com/nyanmisaka/ffmpeg-rockchip.git
				synced 2025-10-31 12:36:41 +08:00 
			
		
		
		
	i263: skip dummy frames
Intel i263 codec has special 8-byte dummy frames that should not be decoded, so do not even attempt to decode them and skip them instead. Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
This commit is contained in:
		 Dirk Ausserhaus
					Dirk Ausserhaus
				
			
				
					committed by
					
						 Kostya Shishkov
						Kostya Shishkov
					
				
			
			
				
	
			
			
			 Kostya Shishkov
						Kostya Shishkov
					
				
			
						parent
						
							e74433a8e6
						
					
				
				
					commit
					b2290bf10b
				
			| @@ -26,6 +26,10 @@ int ff_intel_h263_decode_picture_header(MpegEncContext *s) | |||||||
| { | { | ||||||
|     int format; |     int format; | ||||||
|  |  | ||||||
|  |     if (get_bits_left(&s->gb) == 64) { /* special dummy frames */ | ||||||
|  |         return FRAME_SKIPPED; | ||||||
|  |     } | ||||||
|  |  | ||||||
|     /* picture header */ |     /* picture header */ | ||||||
|     if (get_bits_long(&s->gb, 22) != 0x20) { |     if (get_bits_long(&s->gb, 22) != 0x20) { | ||||||
|         av_log(s->avctx, AV_LOG_ERROR, "Bad picture start code\n"); |         av_log(s->avctx, AV_LOG_ERROR, "Bad picture start code\n"); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user