From 9b60e679986ec64764ef7a19463b2798646acb1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20K=C3=BChling?= Date: Sun, 1 May 2011 13:23:57 +0200 Subject: [PATCH] mplayer: fix playback of Theora files width width/height not multiple of 16 --- mplayer/Makefile | 2 +- .../patches/040-fix-theora-framesize-not-x16.patch | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 mplayer/patches/040-fix-theora-framesize-not-x16.patch diff --git a/mplayer/Makefile b/mplayer/Makefile index 91bb470..918eb21 100644 --- a/mplayer/Makefile +++ b/mplayer/Makefile @@ -10,7 +10,7 @@ PKG_NAME:=MPlayer PKG_REV:=33341 FFMPEG_REV:=97dc86b793efb9c6ac604cdfff4027fe27efa12c PKG_VERSION:=r$(PKG_REV) -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE=$(PKG_NAME)-$(PKG_VERSION).tar.gz FFMPEG_SOURCE_URL:=git://git.videolan.org/ffmpeg.git diff --git a/mplayer/patches/040-fix-theora-framesize-not-x16.patch b/mplayer/patches/040-fix-theora-framesize-not-x16.patch new file mode 100644 index 0000000..027a494 --- /dev/null +++ b/mplayer/patches/040-fix-theora-framesize-not-x16.patch @@ -0,0 +1,13 @@ +Index: MPlayer-r33333/libmpcodecs/vd_theora.c +=================================================================== +--- MPlayer-r33333.orig/libmpcodecs/vd_theora.c 2011-05-01 10:23:23.000000000 +0200 ++++ MPlayer-r33333/libmpcodecs/vd_theora.c 2011-05-01 10:45:06.000000000 +0200 +@@ -133,7 +133,7 @@ + mp_msg(MSGT_DECVIDEO,MSGL_V,"INFO: Theora video init ok!\n"); + mp_msg(MSGT_DECVIDEO,MSGL_INFO,"Frame: %dx%d, Picture %dx%d, Offset [%d,%d]\n", context->inf.width, context->inf.height, context->inf.frame_width, context->inf.frame_height, context->inf.offset_x, context->inf.offset_y); + +- return mpcodecs_config_vo (sh,context->inf.width,context->inf.height,theora_pixelformat2imgfmt(context->inf.pixelformat)); ++ return mpcodecs_config_vo (sh,context->inf.frame_width,context->inf.frame_height,theora_pixelformat2imgfmt(context->inf.pixelformat)); + + err_out: + free(context);