diff options
author | Marton Balint <cus@passwd.hu> | 2016-02-20 20:09:42 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2016-03-20 19:51:28 +0100 |
commit | 65efcaeb8467f5aff25eaf02b20dae43d5ca9dc7 (patch) | |
tree | 84ef75b0ccde6ccf4d9544281f8aad9b635c1f88 /libavformat | |
parent | 25f707694cd33f65979320bc0de9273c11bf547c (diff) |
avformat/mov: read start_pad from edit list start time if codec is aac
Related to ticket #2324, #2325.
Stream duration still need to be fixed...
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mov.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index 4f446ba8cd..3fa8fcc2f6 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -2688,6 +2688,9 @@ static void mov_build_index(MOVContext *mov, AVStream *st) st->codec->has_b_frames = 1; } } + + if (!unsupported && st->codec->codec_id == AV_CODEC_ID_AAC && start_time > 0) + sc->start_pad = start_time; } /* only use old uncompressed audio chunk demuxing when stts specifies it */ |