summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Stembridge <jstembridge@users.sourceforge.net>2004-05-23 16:12:04 +0000
committerJames Stembridge <jstembridge@users.sourceforge.net>2004-05-23 16:12:04 +0000
commitc95dba35158f52b70a719f99c7377a649eb3eff4 (patch)
tree5de8b6ed2a1fd36d920a7e3cd0e7c5473f41cf1d
parent7fe284aaaf4b5f928a594d4650e46b6ecdce7023 (diff)
downloadxine-lib-c95dba35158f52b70a719f99c7377a649eb3eff4.tar.gz
xine-lib-c95dba35158f52b70a719f99c7377a649eb3eff4.tar.bz2
Demuxer now outputs sensible timestamps so no need to use the binary codec to fix them - it doesn't do a very good job of it anyway
CVS patchset: 6580 CVS date: 2004/05/23 16:12:04
-rw-r--r--src/libreal/xine_decoder.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/libreal/xine_decoder.c b/src/libreal/xine_decoder.c
index 0c685b0bd..0b09a9d6f 100644
--- a/src/libreal/xine_decoder.c
+++ b/src/libreal/xine_decoder.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: xine_decoder.c,v 1.70 2004/05/13 21:15:33 jstembridge Exp $
+ * $Id: xine_decoder.c,v 1.71 2004/05/23 16:12:04 jstembridge Exp $
*
* thin layer to use real binary-only codecs in xine
*
@@ -306,7 +306,6 @@ static void realdec_decode_data (video_decoder_t *this_gen, buf_element_t *buf)
this->chunk_buffer_size = 0;
this->pts = buf->pts;
lprintf ("new frame starting, pts=%lld\n", this->pts);
-
}
if ((this->chunk_buffer_size + buf->size) > this->chunk_buffer_max) {
@@ -392,9 +391,7 @@ static void realdec_decode_data (video_decoder_t *this_gen, buf_element_t *buf)
XINE_IMGFMT_YV12,
VO_BOTH_FIELDS);
- /* the binary codec seems to correct the strange timestamps (for b-frames?)
- * so use the one it returns */
- img->pts = transform_out[2] * 90;
+ img->pts = this->pts;
img->duration = this->duration;
_x_stream_info_set(this->stream, XINE_STREAM_INFO_FRAME_DURATION, this->duration);
img->bad_frame = 0;