#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
_______________________________________________
FFmpeg-trac mailing list
[email protected]
http://avcodec.org/mailman/listinfo/ffmpeg-trac

Reply via email to