diff options
-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 261d50f84..37edd62d3 100644 --- a/libhb/stream.c +++ b/libhb/stream.c @@ -1479,7 +1479,7 @@ static hb_buffer_t * hb_ps_stream_getVideo( idx = index_of_ps_stream( stream, pes_info.stream_id, pes_info.stream_id_ext ); } - if ( stream->pes.list[idx].stream_kind == V ) + if ( idx >= 0 && stream->pes.list[idx].stream_kind == V ) { if ( pes_info.pts != AV_NOPTS_VALUE ) { |