summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2013-01-07 08:52:16 +0000
committerphintuka <phintuka>2013-01-07 08:52:16 +0000
commitb347d3265c249d9a0bffe1f393ae0e6c291c81e6 (patch)
tree62cb504e8e457abb3979c10a9a0f12cda6187371
parentc1899fb408437f6f38a54d09ba88fb95a052ea91 (diff)
downloadxineliboutput-b347d3265c249d9a0bffe1f393ae0e6c291c81e6.tar.gz
xineliboutput-b347d3265c249d9a0bffe1f393ae0e6c291c81e6.tar.bz2
Added missing BUF_FLAG_FRAME_END to last fragment of known-sized PES packets
-rw-r--r--xine/ts2es.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xine/ts2es.c b/xine/ts2es.c
index 46a62171..034714d6 100644
--- a/xine/ts2es.c
+++ b/xine/ts2es.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: ts2es.c,v 1.21 2013-01-06 21:32:13 phintuka Exp $
+ * $Id: ts2es.c,v 1.22 2013-01-07 08:52:16 phintuka Exp $
*
*/
@@ -243,6 +243,7 @@ buf_element_t *ts2es_put(ts2es_t *this, uint8_t *data, fifo_buffer_t *src_fifo)
/* check if PES packet is complete */
if (this->pes_len > 0) {
if (this->pes_len <= bytes) {
+ this->buf->decoder_flags |= BUF_FLAG_FRAME_END;
result = this->buf;
this->buf = NULL;
this->pes_error = 1; /* to drop rest of data */