mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-05-25 14:09:14 +00:00
Merge remote-tracking branch 'qatar/master'
* qatar/master: ARM: remove MULL inline asm mathops: use MUL64 macro where it forms part of other ops tty: factorise returning error codes. rawdec: add framerate private option. x11grab: add framerate private option. fbdev,v4l2: remove some forgotten uses of AVFormatParameters.time_base. bktr: don't error when AVFormatParameters.time_base isn't set. cmdutils: add missing const qualifier Skip headers not designed to work standalone during 'make checkheaders'. Add missing #includes to make headers self-contained. musepack: remove unnecessary #include from mpcdata.h musepack: remove extraneous mpcdata.h inclusions Fix error check in av_file_map() Conflicts: cmdutils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
46eb300d01
20 changed files with 270 additions and 340 deletions
|
@ -526,6 +526,8 @@ static int v4l2_set_parameters(AVFormatContext *s1, AVFormatParameters *ap)
|
|||
return AVERROR(errno);
|
||||
}
|
||||
}
|
||||
s1->streams[0]->codec->time_base.den = tpf->denominator;
|
||||
s1->streams[0]->codec->time_base.num = tpf->numerator;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -658,8 +660,6 @@ static int v4l2_read_header(AVFormatContext *s1, AVFormatParameters *ap)
|
|||
st->codec->codec_id = codec_id;
|
||||
st->codec->width = s->width;
|
||||
st->codec->height = s->height;
|
||||
st->codec->time_base.den = ap->time_base.den;
|
||||
st->codec->time_base.num = ap->time_base.num;
|
||||
st->codec->bit_rate = s->frame_size * 1/av_q2d(st->codec->time_base) * 8;
|
||||
|
||||
out:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue