summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-12-10 10:42:12 -0800
committerJohn Stebbins <[email protected]>2016-12-10 10:42:12 -0800
commit81f0ddb2ffbe50901a6825aa932036ebb7ee4d47 (patch)
tree774ef6e90fcce29bef4edeb287a99199d8a05ba0
parent8a9f21ce98e526b776313885ca6439deada6e8ee (diff)
stream: fix invalid ES packet generation
In some cases, the PES header was included in the "ES" data.
-rw-r--r--libhb/stream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libhb/stream.c b/libhb/stream.c
index c6242f829..aef2144bd 100644
--- a/libhb/stream.c
+++ b/libhb/stream.c
@@ -4848,9 +4848,9 @@ hb_buffer_t * hb_ts_decode_pkt( hb_stream_t *stream, const uint8_t * pkt,
// to the old pcr.
buf = generate_output_data(stream, curstream);
hb_buffer_list_append(&list, buf);
- ts_stream->pes_info_valid = 0;
- ts_stream->packet_len = 0;
}
+ ts_stream->pes_info_valid = 0;
+ ts_stream->packet_len = 0;
// PES must begin with an mpeg start code
const uint8_t *pes = pkt + adapt_len + 4;