[Ffmpeg-cvslog] CVS: ffmpeg ffmpeg.c,1.364,1.365

Roberto Togni CVS rtognimp
Thu Jan 26 20:38:20 CET 2006


Update of /cvsroot/ffmpeg/ffmpeg
In directory mail:/var2/tmp/cvs-serv4239

Modified Files:
	ffmpeg.c 
Log Message:
ffmpeg forgets to set AVFormatParameters::pix_fmt when capturing from a
v4l card.
In other words, if you type ffmpeg -pix_fmt yuv422 -s 352x288 test.avi
the "-pix_fmt yuv422" option will have no effect.

Patch by Luca Abeni *** lucabe72 !a! email ! it ***


Index: ffmpeg.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/ffmpeg.c,v
retrieving revision 1.364
retrieving revision 1.365
diff -u -d -r1.364 -r1.365
--- ffmpeg.c	25 Jan 2006 22:10:10 -0000	1.364
+++ ffmpeg.c	26 Jan 2006 19:38:16 -0000	1.365
@@ -3581,6 +3581,7 @@
         vp->device  = video_device;
         vp->channel = video_channel;
         vp->standard = video_standard;
+        vp->pix_fmt = frame_pix_fmt;
         if (av_open_input_file(&ic, "", fmt1, 0, vp) < 0) {
             fprintf(stderr, "Could not find video grab device\n");
             exit(1);





More information about the ffmpeg-cvslog mailing list