From d1c62ab2512fa23f7bf510396bf5bce28e05b5f9 Mon Sep 17 00:00:00 2001 From: James Stembridge Date: Thu, 8 Jan 2004 23:17:34 +0000 Subject: check for recognised codecs CVS patchset: 6013 CVS date: 2004/01/08 23:17:34 --- src/demuxers/demux_real.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/demuxers/demux_real.c b/src/demuxers/demux_real.c index 75f6b7fc3..7d75c26d8 100644 --- a/src/demuxers/demux_real.c +++ b/src/demuxers/demux_real.c @@ -31,7 +31,7 @@ * * Based on FFmpeg's libav/rm.c. * - * $Id: demux_real.c,v 1.74 2003/12/12 22:29:20 jstembridge Exp $ + * $Id: demux_real.c,v 1.75 2004/01/08 23:17:34 jstembridge Exp $ */ #ifdef HAVE_CONFIG_H @@ -652,6 +652,10 @@ unknown: /* Send headers and set meta info */ if(this->video_stream) { buf_element_t *buf; + + /* Check for recognised codec*/ + if(!this->video_stream->buf_type) + this->video_stream->buf_type = BUF_VIDEO_UNKNOWN; /* Send header */ buf = this->video_fifo->buffer_pool_alloc(this->video_fifo); @@ -691,6 +695,10 @@ unknown: } if(this->audio_stream) { + /* Check for recognised codec */ + if(!this->audio_stream->buf_type) + this->audio_stream->buf_type = BUF_AUDIO_UNKNOWN; + /* Send headers */ if(this->audio_fifo) { buf_element_t *buf; -- cgit v1.2.3