diff options
author | John Stebbins <[email protected]> | 2017-04-09 10:33:26 -0600 |
---|---|---|
committer | John Stebbins <[email protected]> | 2017-04-09 10:33:26 -0600 |
commit | 3b080f5c7d5c1aa8ac80a37a8adb5db0a60b6aae (patch) | |
tree | 96e066b073c32dd086ef9f13290bbc77f28ec50a /libhb/stream.c | |
parent | 44776e14258896fa651a8f7d4c8de3c94553caf2 (diff) |
Fix raw video timestamps
Raw video has no timestamps. But we drop frames in sync that have no
timestamps. So detect raw video and extrapolate timestamps from
framerate.
Diffstat (limited to 'libhb/stream.c')
-rw-r--r-- | libhb/stream.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libhb/stream.c b/libhb/stream.c index baa53018f..76d7fe4f3 100644 --- a/libhb/stream.c +++ b/libhb/stream.c @@ -5554,6 +5554,10 @@ static hb_title_t *ffmpeg_title_scan( hb_stream_t *stream, hb_title_t *title ) title->video_codec = WORK_DECAVCODECV; title->video_codec_param = codecpar->codec_id; + if (ic->iformat->raw_codec_id != AV_CODEC_ID_NONE) + { + title->flags |= HBTF_RAW_VIDEO; + } } else if (ic->streams[i]->codecpar->codec_type == AVMEDIA_TYPE_AUDIO && avcodec_find_decoder( ic->streams[i]->codecpar->codec_id)) |