summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJames Courtier-Dutton <jcdutton@users.sourceforge.net>2003-06-19 01:58:25 +0000
committerJames Courtier-Dutton <jcdutton@users.sourceforge.net>2003-06-19 01:58:25 +0000
commitdf4994a7fb4441e550a06cf5aea203594a29beb6 (patch)
tree95e2561ec13d437d082af6f634c218569569058a /src
parent6866ddd6b50de0f4a6333e966124abfea46365d7 (diff)
downloadxine-lib-df4994a7fb4441e550a06cf5aea203594a29beb6.tar.gz
xine-lib-df4994a7fb4441e550a06cf5aea203594a29beb6.tar.bz2
Add bitrate info.
CVS patchset: 5069 CVS date: 2003/06/19 01:58:25
Diffstat (limited to 'src')
-rw-r--r--src/libmpeg2new/xine_decoder.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libmpeg2new/xine_decoder.c b/src/libmpeg2new/xine_decoder.c
index c4aa8e224..05fb57b1f 100644
--- a/src/libmpeg2new/xine_decoder.c
+++ b/src/libmpeg2new/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.8 2003/06/18 10:36:18 jcdutton Exp $
+ * $Id: xine_decoder.c,v 1.9 2003/06/19 01:58:25 jcdutton Exp $
*
* stuff needed to turn libmpeg2 into a xine decoder plugin
*/
@@ -131,6 +131,7 @@ static void mpeg2_video_decode_data (video_decoder_t *this_gen, buf_element_t *b
case STATE_SEQUENCE:
/* might set nb fbuf, convert format, stride */
/* might set fbufs */
+ this->stream->stream_info[XINE_STREAM_INFO_VIDEO_BITRATE] = info->sequence->byte_rate * 8;
this->stream->stream_info[XINE_STREAM_INFO_VIDEO_WIDTH] = info->sequence->picture_width;
this->stream->stream_info[XINE_STREAM_INFO_VIDEO_HEIGHT] = info->sequence->picture_height;
this->stream->stream_info[XINE_STREAM_INFO_FRAME_DURATION] = info->sequence->frame_period / 300;