diff options
author | John Stebbins <[email protected]> | 2016-05-17 10:17:37 -0600 |
---|---|---|
committer | John Stebbins <[email protected]> | 2016-05-17 10:17:37 -0600 |
commit | 4509610de00967833e9e6e07c6a50878df93b2d5 (patch) | |
tree | 6b1dd2afcce77cb77f719aba8504217c81aa0312 | |
parent | 2facb50c81364f1f0faa62a7da879447e848ee93 (diff) |
stream: fix libav initial timestamp calculation
libav may deliver an initial timestamp that is negative which we were
not handling well.
-rw-r--r-- | libhb/stream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/stream.c b/libhb/stream.c index 49f8a5615..65db14396 100644 --- a/libhb/stream.c +++ b/libhb/stream.c @@ -1729,7 +1729,7 @@ hb_buffer_t * hb_stream_read( hb_stream_t * src_stream ) int64_t ffmpeg_initial_timestamp( hb_stream_t * stream ) { AVFormatContext *ic = stream->ffmpeg_ic; - if ( ic->start_time != AV_NOPTS_VALUE && ic->start_time > 0 ) + if (ic->start_time != AV_NOPTS_VALUE) return ic->start_time; else return 0; |