mirror of
				https://github.com/nyanmisaka/ffmpeg-rockchip.git
				synced 2025-10-31 20:42:49 +08:00 
			
		
		
		
	avcodec/magicyuvenc: Remove redundant pixel format check
ff_encode_preinit() already checked the pixel format via AVCodec.pix_fmts. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
		| @@ -189,10 +189,6 @@ static av_cold int magy_encode_init(AVCodecContext *avctx) | |||||||
|         avctx->codec_tag = MKTAG('M', '8', 'G', '0'); |         avctx->codec_tag = MKTAG('M', '8', 'G', '0'); | ||||||
|         s->format = 0x6b; |         s->format = 0x6b; | ||||||
|         break; |         break; | ||||||
|     default: |  | ||||||
|         av_log(avctx, AV_LOG_ERROR, "Unsupported pixel format: %d\n", |  | ||||||
|                avctx->pix_fmt); |  | ||||||
|         return AVERROR_INVALIDDATA; |  | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     ff_llvidencdsp_init(&s->llvidencdsp); |     ff_llvidencdsp_init(&s->llvidencdsp); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Andreas Rheinhardt
					Andreas Rheinhardt