mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-13 04:24:49 +08:00
lavf/mov: Do not mix variable declaration and code.
Fixes a warning: libavformat/mov.c:1195:5: warning: ISO C90 forbids mixed declarations and code
This commit is contained in:
@@ -1188,11 +1188,12 @@ static void set_frag_stream(MOVFragmentIndex *frag_index, int id)
|
|||||||
static MOVFragmentStreamInfo * get_current_frag_stream_info(
|
static MOVFragmentStreamInfo * get_current_frag_stream_info(
|
||||||
MOVFragmentIndex *frag_index)
|
MOVFragmentIndex *frag_index)
|
||||||
{
|
{
|
||||||
|
MOVFragmentIndexItem *item;
|
||||||
if (frag_index->current < 0 ||
|
if (frag_index->current < 0 ||
|
||||||
frag_index->current >= frag_index->nb_items)
|
frag_index->current >= frag_index->nb_items)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
MOVFragmentIndexItem * item = &frag_index->item[frag_index->current];
|
item = &frag_index->item[frag_index->current];
|
||||||
if (item->current >= 0 && item->current < item->nb_stream_info)
|
if (item->current >= 0 && item->current < item->nb_stream_info)
|
||||||
return &item->stream_info[item->current];
|
return &item->stream_info[item->current];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user