summaryrefslogtreecommitdiff
path: root/src/libffmpeg
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2006-06-30 00:21:30 +0000
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2006-06-30 00:21:30 +0000
commitc3431270d9ba579e4ce1298ea6f0c0f913dcf20f (patch)
tree52b28256d0accd36aeaa84769e7126a25eb56e25 /src/libffmpeg
parentf65f66d8283dfd1ec992093c71952297b7894c11 (diff)
downloadxine-lib-c3431270d9ba579e4ce1298ea6f0c0f913dcf20f.tar.gz
xine-lib-c3431270d9ba579e4ce1298ea6f0c0f913dcf20f.tar.bz2
Set the pixel format to YUV420P when encoding for Dxr3 cards, ffmpeg's mpeg encoder accepts only that for mpeg1. Thanks to Alejandro Homs-Puron in SourceForge ticket 1424281 and Gentoo bug #138530.
CVS patchset: 8081 CVS date: 2006/06/30 00:21:30
Diffstat (limited to 'src/libffmpeg')
-rw-r--r--src/libffmpeg/xine_encoder.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libffmpeg/xine_encoder.c b/src/libffmpeg/xine_encoder.c
index 5f2efb692..d67b598a1 100644
--- a/src/libffmpeg/xine_encoder.c
+++ b/src/libffmpeg/xine_encoder.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_encoder.c,v 1.23 2006/06/18 20:29:04 dgp85 Exp $
+ * $Id: xine_encoder.c,v 1.24 2006/06/30 00:21:30 dgp85 Exp $
*/
/* mpeg encoders for the dxr3 video out plugin. */
@@ -157,6 +157,9 @@ static int lavc_on_update_format(dxr3_driver_t *drv, dxr3_frame_t *frame)
"dxr3_mpeg_encoder: Couldn't allocate ffmpeg frame\n");
return 0;
}
+
+ /* mpeg1 encoder only support YUV420P */
+ this->context->pix_fmt = PIX_FMT_YUVJ420P;
/* put sample parameters */
this->context->bit_rate = drv->class->xine->config->register_range(drv->class->xine->config,