mirror of https://git.ffmpeg.org/ffmpeg.git
lavd/fbdev_enc: remove unused variables
Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
758b6d39f6
commit
b387a24cb4
|
@ -44,15 +44,12 @@ static av_cold int fbdev_write_header(AVFormatContext *h)
|
||||||
{
|
{
|
||||||
FBDevContext *fbdev = h->priv_data;
|
FBDevContext *fbdev = h->priv_data;
|
||||||
enum AVPixelFormat pix_fmt;
|
enum AVPixelFormat pix_fmt;
|
||||||
AVStream *st = NULL;
|
|
||||||
int ret, flags = O_RDWR;
|
int ret, flags = O_RDWR;
|
||||||
int i;
|
|
||||||
|
|
||||||
if (h->nb_streams != 1 || h->streams[0]->codec->codec_type != AVMEDIA_TYPE_VIDEO) {
|
if (h->nb_streams != 1 || h->streams[0]->codec->codec_type != AVMEDIA_TYPE_VIDEO) {
|
||||||
av_log(fbdev, AV_LOG_ERROR, "Only a single video stream is supported.\n");
|
av_log(fbdev, AV_LOG_ERROR, "Only a single video stream is supported.\n");
|
||||||
return AVERROR(EINVAL);
|
return AVERROR(EINVAL);
|
||||||
}
|
}
|
||||||
st = h->streams[0];
|
|
||||||
|
|
||||||
if ((fbdev->fd = avpriv_open(h->filename, flags)) == -1) {
|
if ((fbdev->fd = avpriv_open(h->filename, flags)) == -1) {
|
||||||
ret = AVERROR(errno);
|
ret = AVERROR(errno);
|
||||||
|
|
Loading…
Reference in New Issue