Unified · Split
| @@ -937,8 +937,8 @@ static int v4l2_read_header(AVFormatContext *ctx) · 936 unmodified lines | |||
| 937 | 937 | ||
| 938 | st->codecpar->format = ff_fmt_v4l2ff(desired_format, codec_id); | 938 | st->codecpar->format = ff_fmt_v4l2ff(desired_format, codec_id); |
| 939 | if (st->codecpar->format != AV_PIX_FMT_NONE) | 939 | if (st->codecpar->format != AV_PIX_FMT_NONE) |
| 940 | s->frame_size = av_image_get_buffer_size(st->codecpar->format, | 940 | s->frame_size = av_image_get_buffer_size(st->codecpar->format, |
| 941 | s->width, s->height, 1); | 941 | s->width, s->height, 1); |
| 942 | 942 | ||
| 943 | if ((res = mmap_init(ctx)) || | 943 | if ((res = mmap_init(ctx)) || |
| 944 | (res = mmap_start(ctx)) < 0) | 944 | (res = mmap_start(ctx)) < 0) |