mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-05 12:07:49 +00:00
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
This commit is contained in:
parent
f038fe8b4a
commit
dea42fdf8d
1
ffmpeg.c
1
ffmpeg.c
@ -3581,6 +3581,7 @@ static void prepare_grab(void)
|
|||||||
vp->device = video_device;
|
vp->device = video_device;
|
||||||
vp->channel = video_channel;
|
vp->channel = video_channel;
|
||||||
vp->standard = video_standard;
|
vp->standard = video_standard;
|
||||||
|
vp->pix_fmt = frame_pix_fmt;
|
||||||
if (av_open_input_file(&ic, "", fmt1, 0, vp) < 0) {
|
if (av_open_input_file(&ic, "", fmt1, 0, vp) < 0) {
|
||||||
fprintf(stderr, "Could not find video grab device\n");
|
fprintf(stderr, "Could not find video grab device\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user