[FFmpeg-devel] [PATCH] Fix distortion problem in MPEG1/2 video
Carl Eugen Hoyos
cehoyos at ag.or.at
Sat Nov 17 11:37:40 CET 2012
Hee Suk Jung <heesuk.jung <at> lge.com> writes:
> - st->need_parsing = AVSTREAM_PARSE_HEADERS;
You could just leave this line and remove the default
case below (but feel free to ignore, esp. since then
you should probably change the case to an if).
> + switch (st->codec->codec_id) {
> + case AV_CODEC_ID_MPEG1VIDEO:
> + st->need_parsing = AVSTREAM_PARSE_FULL;
> + break;
> + case AV_CODEC_ID_MPEG2VIDEO:
> + st->need_parsing = AVSTREAM_PARSE_FULL;
The two case statements should be merged.
Thank you for looking at this, Carl Eugen
More information about the ffmpeg-devel
mailing list