goto dequeue;
if (!frame->buf[0]) {
- ret = ff_encode_get_frame(avctx, frame);
- if (ret < 0 && ret != AVERROR_EOF)
- return ret;
+ ret = ff_encode_get_frame(avctx, frame);
+ if (ret < 0 && ret != AVERROR_EOF)
+ return ret;
- if (ret == AVERROR_EOF)
- frame = NULL;
+ if (ret == AVERROR_EOF)
+ frame = NULL;
}
ret = v4l2_send_frame(avctx, frame);