libtriple: cPlayback: improve get_pts

* add the buffer size to the call to avoid overflows
* extract PTS also from MPEG1 packets
This commit is contained in:
Stefan Seyfried
2010-08-29 21:53:04 +02:00
parent 2698788643
commit f50f68677f
2 changed files with 37 additions and 15 deletions

View File

@@ -78,7 +78,7 @@ class cPlayback
int64_t pts_start;
int64_t pts_end;
int64_t pts_curr;
int64_t get_pts(uint8_t *p, bool pes);
int64_t get_pts(uint8_t *p, bool pes, int bufsize);
filetype_t filetype;
playstate_t playstate;