[asterisk-commits] rizzo: branch rizzo/video_v2 r84634 - /team/rizzo/video_v2/channels/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Oct 4 08:53:23 CDT 2007


Author: rizzo
Date: Thu Oct  4 08:53:22 2007
New Revision: 84634

URL: http://svn.digium.com/view/asterisk?view=rev&rev=84634
Log:
a little bit of cleanup

Modified:
    team/rizzo/video_v2/channels/console_video.c

Modified: team/rizzo/video_v2/channels/console_video.c
URL: http://svn.digium.com/view/asterisk/team/rizzo/video_v2/channels/console_video.c?view=diff&rev=84634&r1=84633&r2=84634
==============================================================================
--- team/rizzo/video_v2/channels/console_video.c (original)
+++ team/rizzo/video_v2/channels/console_video.c Thu Oct  4 08:53:22 2007
@@ -619,13 +619,14 @@
 		return video_out_uninit(v);
 	}
 
-	v->mtu = 1400;	/* important to set it early so the encoder can use it */
+	v->mtu = 1400;	/* set it early so the encoder can use it */
 
 	/* allocate the input buffer for encoding.
-	 * Once again we assume the encoder works on some 411 format.
+	 * ffmpeg only supports PIX_FMT_YUV420P for the encoding.
 	 */
 	enc_in = &v->enc_in;
-	enc_in->size = (enc_in->w * enc_in->h * 3)/2;	/* yuv411 */
+	enc_in->pix_fmt = PIX_FMT_YUV420P;
+	enc_in->size = (enc_in->w * enc_in->h * 3)/2;
 	enc_in->data = ast_calloc(1, enc_in->size);
 	if (!enc_in->data) {
 		ast_log(LOG_WARNING, "Cannot allocate encoder input buffer\n");




More information about the asterisk-commits mailing list