mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
Merge commit 'fab694dd39'
* commit 'fab694dd39':
lavf: move a variable declaration to the block where it's used
Conflicts:
libavformat/utils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
b0ba2bf8c6
1 changed files with 2 additions and 2 deletions
|
|
@ -2214,12 +2214,12 @@ static void fill_all_stream_timings(AVFormatContext *ic)
|
||||||
static void estimate_timings_from_bit_rate(AVFormatContext *ic)
|
static void estimate_timings_from_bit_rate(AVFormatContext *ic)
|
||||||
{
|
{
|
||||||
int64_t filesize, duration;
|
int64_t filesize, duration;
|
||||||
int bit_rate, i, show_warning = 0;
|
int i, show_warning = 0;
|
||||||
AVStream *st;
|
AVStream *st;
|
||||||
|
|
||||||
/* if bit_rate is already set, we believe it */
|
/* if bit_rate is already set, we believe it */
|
||||||
if (ic->bit_rate <= 0) {
|
if (ic->bit_rate <= 0) {
|
||||||
bit_rate = 0;
|
int bit_rate = 0;
|
||||||
for(i=0;i<ic->nb_streams;i++) {
|
for(i=0;i<ic->nb_streams;i++) {
|
||||||
st = ic->streams[i];
|
st = ic->streams[i];
|
||||||
if (st->codec->bit_rate > 0)
|
if (st->codec->bit_rate > 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue