Commit 44e74da7 authored by michael's avatar michael

sanity check


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3047 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 06732e43
...@@ -957,6 +957,12 @@ int MPV_encode_init(AVCodecContext *avctx) ...@@ -957,6 +957,12 @@ int MPV_encode_init(AVCodecContext *avctx)
return -1; return -1;
} }
if((s->flags & (CODEC_FLAG_INTERLACED_DCT|CODEC_FLAG_INTERLACED_ME|CODEC_FLAG_ALT_SCAN))
&& s->codec_id != CODEC_ID_MPEG4 && s->codec_id != CODEC_ID_MPEG2VIDEO){
av_log(avctx, AV_LOG_ERROR, "interlacing not supported by codec\n");
return -1;
}
if(s->mpeg_quant && s->codec_id != CODEC_ID_MPEG4){ //FIXME mpeg2 uses that too if(s->mpeg_quant && s->codec_id != CODEC_ID_MPEG4){ //FIXME mpeg2 uses that too
av_log(avctx, AV_LOG_ERROR, "mpeg2 style quantization not supporetd by codec\n"); av_log(avctx, AV_LOG_ERROR, "mpeg2 style quantization not supporetd by codec\n");
return -1; return -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment