Commit d1e750cd authored by Marek Fort's avatar Marek Fort Committed by Michael Niedermayer

avformat/mov: Support reading Avid's metadata for DNXHD codec.

The AALP atom is necessary to properly decode the alpha channel.
Needed for ticket #3707
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f73d7538
...@@ -1007,7 +1007,10 @@ static int mov_read_jp2h(MOVContext *c, AVIOContext *pb, MOVAtom atom) ...@@ -1007,7 +1007,10 @@ static int mov_read_jp2h(MOVContext *c, AVIOContext *pb, MOVAtom atom)
static int mov_read_avid(MOVContext *c, AVIOContext *pb, MOVAtom atom) static int mov_read_avid(MOVContext *c, AVIOContext *pb, MOVAtom atom)
{ {
return mov_read_extradata(c, pb, atom, AV_CODEC_ID_AVUI); int ret = mov_read_extradata(c, pb, atom, AV_CODEC_ID_AVUI);
if(ret == 0)
ret = mov_read_extradata(c, pb, atom, AV_CODEC_ID_DNXHD);
return ret;
} }
static int mov_read_targa_y216(MOVContext *c, AVIOContext *pb, MOVAtom atom) static int mov_read_targa_y216(MOVContext *c, AVIOContext *pb, MOVAtom atom)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment