diff options
author | Martin Storsjö <martin@martin.st> | 2012-02-16 21:12:12 +0100 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-02-18 21:13:36 +0200 |
commit | 5be805d38cb43e6f0b85941f75946d09bc8cc13f (patch) | |
tree | fb9fb4ce920efd1285c1e1965dd1d82387359e29 /libavformat/mov.c | |
parent | 3eec23f3cd7b0d8ef0a545089f75b55390a8ddb9 (diff) | |
download | ffmpeg-5be805d38cb43e6f0b85941f75946d09bc8cc13f.tar.gz |
mov: Use defines for sample flags in fragments
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r-- | libavformat/mov.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index 5f1302d6c3..fbc7223233 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -2282,7 +2282,7 @@ static int mov_read_trun(MOVContext *c, AVIOContext *pb, MOVAtom atom) avio_rb32(pb) : 0; sc->ctts_count++; if ((keyframe = st->codec->codec_type == AVMEDIA_TYPE_AUDIO || - (flags & MOV_TRUN_FIRST_SAMPLE_FLAGS && !i && !(sample_flags & 0xffff0000)) || sample_flags & 0x2000000)) + (flags & MOV_TRUN_FIRST_SAMPLE_FLAGS && !i && !(sample_flags & ~MOV_FRAG_SAMPLE_FLAG_DEGRADATION_PRIORITY_MASK)) || sample_flags & MOV_FRAG_SAMPLE_FLAG_DEPENDS_NO)) distance = 0; av_add_index_entry(st, offset, dts, sample_size, distance, keyframe ? AVINDEX_KEYFRAME : 0); |