Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>2015-02-14 00:51:33 +0300
committerMartin Storsjö <martin@martin.st>2015-02-22 00:37:42 +0300
commit5cbae5651d7c1ce9b0691dfbf2d474cb2b0ebb9a (patch)
treeff6b7712c530ca61f4e64ba783fe85f97a034465 /libavcodec/mpegaudiodecheader.c
parent5e5583efe41662294c5e1b76499ba338557f808d (diff)
mpegaudio_parser: add MP3 ADU headers parser
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec/mpegaudiodecheader.c')
-rw-r--r--libavcodec/mpegaudiodecheader.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/mpegaudiodecheader.c b/libavcodec/mpegaudiodecheader.c
index 25e73195b8..8efcbe4dab 100644
--- a/libavcodec/mpegaudiodecheader.c
+++ b/libavcodec/mpegaudiodecheader.c
@@ -134,7 +134,8 @@ int avpriv_mpa_decode_header(AVCodecContext *avctx, uint32_t head, int *sample_r
break;
default:
case 3:
- avctx->codec_id = AV_CODEC_ID_MP3;
+ if (avctx->codec_id != AV_CODEC_ID_MP3ADU)
+ avctx->codec_id = AV_CODEC_ID_MP3;
if (s->lsf)
*frame_size = 576;
else