aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mov.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-04-24 13:58:22 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-04-24 13:58:22 +0000
commitbe51192502938b8ad14dae72498829df705a1800 (patch)
tree92d346a7afaa0f59f6f1bdcc7788abe8d4b30072 /libavformat/mov.c
parent3fd6b3368ad0cd12741ff327c5af6f3086a5de42 (diff)
downloadffmpeg-be51192502938b8ad14dae72498829df705a1800.tar.gz
set alac frame size from extradata
Originally committed as revision 12937 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r--libavformat/mov.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index c4fd248cee..91f27c4045 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -936,6 +936,10 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
case CODEC_ID_ADPCM_IMA_WAV:
st->codec->block_align = sc->bytes_per_frame;
break;
+ case CODEC_ID_ALAC:
+ if (st->codec->extradata_size == 36)
+ st->codec->frame_size = AV_RB32((st->codec->extradata+12));
+ break;
default:
break;
}