avcodec/proresenc_anatoliy: 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:
		
							parent
							
								
									be6da2f252
								
							
						
					
					
						commit
						c10a2959c0
					
				@ -852,9 +852,6 @@ static av_cold int prores_encode_init(AVCodecContext *avctx)
 | 
			
		||||
            avctx->profile = FF_PROFILE_PRORES_4444;
 | 
			
		||||
            av_log(avctx, AV_LOG_INFO,
 | 
			
		||||
                   "encoding with ProRes 4444+ (ap4h) profile\n");
 | 
			
		||||
        } else {
 | 
			
		||||
            av_log(avctx, AV_LOG_ERROR, "Unknown pixel format\n");
 | 
			
		||||
            return AVERROR(EINVAL);
 | 
			
		||||
        }
 | 
			
		||||
    } else if (avctx->profile < FF_PROFILE_PRORES_PROXY
 | 
			
		||||
            || avctx->profile > FF_PROFILE_PRORES_XQ) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user