summaryrefslogtreecommitdiff
path: root/libavformat/mov.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2017-11-20 13:48:28 +0100
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2017-11-20 13:48:28 +0100
commit0f75d77a162d2702606c0b079fa9fb65a2629ccb (patch)
tree6c7748445424594a051df7d5c3bf3971b441159e /libavformat/mov.c
parent185af4ccb1702aa37f1f61fc77c2b37f1b2f4d8d (diff)
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
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r--libavformat/mov.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 5c9f926bce..0b8f8ad24b 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1188,11 +1188,12 @@ static void set_frag_stream(MOVFragmentIndex *frag_index, int id)
static MOVFragmentStreamInfo * get_current_frag_stream_info(
MOVFragmentIndex *frag_index)
{
+ MOVFragmentIndexItem *item;
if (frag_index->current < 0 ||
frag_index->current >= frag_index->nb_items)
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)
return &item->stream_info[item->current];