Commit 64759fb0 authored by rtognimp's avatar rtognimp

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 ***


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4899 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8cb7671f
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment