summaryrefslogtreecommitdiff
path: root/src/libffmpeg/xine_decoder.c
diff options
context:
space:
mode:
authorJuergen Keil <jkeil@users.sourceforge.net>2001-09-18 17:41:47 +0000
committerJuergen Keil <jkeil@users.sourceforge.net>2001-09-18 17:41:47 +0000
commit74158ab4d5dc283712729062fdcf732780ac13a8 (patch)
tree1e871996fcd9e03bcd1a34a13017863f8efb05df /src/libffmpeg/xine_decoder.c
parentdd024e53aa2901d46eaa1da89da5fad14a67f703 (diff)
downloadxine-lib-74158ab4d5dc283712729062fdcf732780ac13a8.tar.gz
xine-lib-74158ab4d5dc283712729062fdcf732780ac13a8.tar.bz2
ffmpeg apparently does not support MSMPEG4 v1/v2 format yet. Trying to handle
MSMPEG4 v1/v2 formats using the libw32dll plugin. But at least for XShm video output, libw32dll is too slow, converting RGB -> YUY2 in the w32dll plugin, and converting back from YUY2 -> RGB in the video out driver :-/ CVS patchset: 661 CVS date: 2001/09/18 17:41:47
Diffstat (limited to 'src/libffmpeg/xine_decoder.c')
-rw-r--r--src/libffmpeg/xine_decoder.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/libffmpeg/xine_decoder.c b/src/libffmpeg/xine_decoder.c
index 6c87f1a54..c67469e09 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.12 2001/09/18 11:38:23 jkeil Exp $
+ * $Id: xine_decoder.c,v 1.13 2001/09/18 17:41:47 jkeil Exp $
*
* xine decoder plugin using ffmpeg
*
@@ -100,9 +100,11 @@ static unsigned short str2ushort(void *data)
static int ff_can_handle (video_decoder_t *this_gen, int buf_type) {
buf_type &= 0xFFFF0000;
- return ( buf_type == BUF_VIDEO_MSMPEG4 ||
- buf_type == BUF_VIDEO_MJPEG ||
+ /* ffmpeg currently does not support MSMPEG4 v1/v2 */
+ return ( buf_type == BUF_VIDEO_MSMPEG4_V3 ||
+ /* buf_type == BUF_VIDEO_MSMPEG4_V12 || */
buf_type == BUF_VIDEO_MPEG4 ||
+ buf_type == BUF_VIDEO_MJPEG ||
buf_type == BUF_VIDEO_I263 ||
buf_type == BUF_VIDEO_RV10 ||
buf_type == BUF_VIDEO_JPEG);
@@ -152,7 +154,8 @@ static void ff_decode_data (video_decoder_t *this_gen, buf_element_t *buf) {
*/
switch (buf->type & 0xFFFF0000) {
- case BUF_VIDEO_MSMPEG4:
+ case BUF_VIDEO_MSMPEG4_V12:
+ case BUF_VIDEO_MSMPEG4_V3:
codec = avcodec_find_decoder (CODEC_ID_MSMPEG4);
break;
case BUF_VIDEO_MPEG4 :