aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorLuca Abeni <lucabe72@email.it>2006-01-26 19:38:16 +0000
committerRoberto Togni <r_togni@tiscali.it>2006-01-26 19:38:16 +0000
commitdea42fdf8d6046d23c8135539777acb26e2b9ec9 (patch)
tree28f737dac376413fc46015490de27e1a12e11414 /ffmpeg.c
parentf038fe8b4a023351c82afcc901891097fa9b0d29 (diff)
downloadffmpeg-dea42fdf8d6046d23c8135539777acb26e2b9ec9.tar.gz
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 *** Originally committed as revision 4899 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index c8e11be110..f859c0f05f 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3581,6 +3581,7 @@ static void prepare_grab(void)
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);