summaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-09-28 17:52:48 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-09-28 17:52:48 +0000
commit0299a87c417a20506641433e255421a18e1b895b (patch)
tree6c0dbcb46aba59455a5bdd2fad38ddbb2ad6f981 /libavformat
parent720442981b5cb735b015b89093ceb21b59af07a2 (diff)
downloadffmpeg-streaming-0299a87c417a20506641433e255421a18e1b895b.zip
ffmpeg-streaming-0299a87c417a20506641433e255421a18e1b895b.tar.gz
change codec id if sample size field is set to 24 in stsd, fix Sony-mx5p.mov
Originally committed as revision 6371 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mov.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 8441a32..6c4f7d4 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -977,6 +977,8 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
case CODEC_ID_PCM_S16BE:
if (st->codec->bits_per_sample == 8)
st->codec->codec_id = CODEC_ID_PCM_S8;
+ else if (st->codec->bits_per_sample == 24)
+ st->codec->codec_id = CODEC_ID_PCM_S24BE;
break;
default:
break;
OpenPOWER on IntegriCloud