summaryrefslogtreecommitdiff
path: root/src/libffmpeg/video_decoder.c
diff options
context:
space:
mode:
authorFrantišek Dvořák <valtri@users.sourceforge.net>2004-09-26 22:54:51 +0000
committerFrantišek Dvořák <valtri@users.sourceforge.net>2004-09-26 22:54:51 +0000
commit9025bf7cc003e8e9981eaf2adc4c614d9bca765c (patch)
tree2788c21b13ec9bfb2fbf2852ae7b4a6c6b764979 /src/libffmpeg/video_decoder.c
parentc4fcac1273c5be824b7468edcda160c38dec1692 (diff)
downloadxine-lib-9025bf7cc003e8e9981eaf2adc4c614d9bca765c.tar.gz
xine-lib-9025bf7cc003e8e9981eaf2adc4c614d9bca765c.tar.bz2
- almost finalize headers refactoring needed for MSVC frontends (and for other
poor platforms, of course) - fix a bug in generated xine-config for WIN32 and make it relocateable under Windows - MSVC port: update, fix some warnings, remove old unneeded files - improve function for getting runtime directory, it will need next fix yet (bug probably due to active volume drives) CVS patchset: 7001 CVS date: 2004/09/26 22:54:51
Diffstat (limited to 'src/libffmpeg/video_decoder.c')
-rw-r--r--src/libffmpeg/video_decoder.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libffmpeg/video_decoder.c b/src/libffmpeg/video_decoder.c
index a74886fab..a589ea949 100644
--- a/src/libffmpeg/video_decoder.c
+++ b/src/libffmpeg/video_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: video_decoder.c,v 1.34 2004/09/22 20:29:14 miguelfreitas Exp $
+ * $Id: video_decoder.c,v 1.35 2004/09/26 22:54:52 valtri Exp $
*
* xine video decoder plugin using ffmpeg
*
@@ -721,6 +721,8 @@ static void ff_decode_data (video_decoder_t *this_gen, buf_element_t *buf) {
ff_video_decoder_t *this = (ff_video_decoder_t *) this_gen;
int i, codec_type;
uint8_t *ffbuf = this->buf;
+ AVRational avr00 = {0, 0};
+
lprintf ("processing packet type = %08x, len = %d, decoder_flags=%08x\n",
buf->type, buf->size, buf->decoder_flags);
@@ -1036,7 +1038,7 @@ static void ff_decode_data (video_decoder_t *this_gen, buf_element_t *buf) {
lprintf ("got a picture\n");
- if(av_cmp_q(this->context->sample_aspect_ratio, (AVRational){0,0})) {
+ if(av_cmp_q(this->context->sample_aspect_ratio, avr00)) {
this->aspect_ratio = av_q2d(this->context->sample_aspect_ratio) *
(double)this->bih.biWidth / (double)this->bih.biHeight;
_x_stream_info_set(this->stream, XINE_STREAM_INFO_VIDEO_RATIO,