[FFmpeg-trac] #4449(avcodec:new): Error in mpegaudio_parser.c
FFmpeg
trac at avcodec.org
Tue Apr 7 21:07:33 CEST 2015
#4449: Error in mpegaudio_parser.c
-------------------------------------+-------------------------------------
Reporter: Dan203 | Type: defect
Status: new | Priority: normal
Component: avcodec | Version: git-
Keywords: | master
mpegaudio_parser | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
There is a logic error in the mpegaudio_parser.c code. This line...
int header_threshold = avctx->codec_id != AV_CODEC_ID_NONE &&
avctx->codec_id != codec_id;
should be...
int header_threshold = avctx->codec_id != AV_CODEC_ID_NONE &&
avctx->codec_id == codec_id;
The current code causes the parser to skip over setting the params if the
codec_id set by the demuxer is different then the one detected by the
parser. But it should skip setting them when they are the same not when
they are different.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4449>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list