From 3ab506d2d52c95e4ee34a793a8f29d53938b7286 Mon Sep 17 00:00:00 2001 From: Mike Melanson Date: Sat, 3 Jan 2004 14:50:13 +0000 Subject: stream_codec_tag needs to be set as well CVS patchset: 5978 CVS date: 2004/01/03 14:50:13 --- src/libffmpeg/xine_decoder.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/libffmpeg/xine_decoder.c b/src/libffmpeg/xine_decoder.c index 029c869ba..1331b57a5 100644 --- a/src/libffmpeg/xine_decoder.c +++ b/src/libffmpeg/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.147 2003/12/26 18:37:59 valtri Exp $ + * $Id: xine_decoder.c,v 1.148 2004/01/03 14:50:13 tmmm Exp $ * * xine decoder plugin using ffmpeg * @@ -238,7 +238,9 @@ static void init_video_codec (ff_video_decoder_t *this, xine_bmiheader *bih) { this->context->opaque = this; this->context->width = this->bih.biWidth; this->context->height = this->bih.biHeight; - this->context->codec_tag = _x_stream_info_get(this->stream, XINE_STREAM_INFO_VIDEO_FOURCC); + this->context->stream_codec_tag = this->context->codec_tag = + _x_stream_info_get(this->stream, XINE_STREAM_INFO_VIDEO_FOURCC); + /* some decoders (eg. dv) do not know the pix_fmt until they decode the * first frame. setting to -1 avoid enabling DR1 for them. */ -- cgit v1.2.3