Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-10-21 20:34:05 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2016-10-21 21:06:29 +0300
commitc495f4ffde1eb452448dbe5818b33a2989c47bae (patch)
tree187be3ea4511e183d5be59ea3984421a0e336305 /libavformat
parenta92f8edf0c51781e152651cce2e753ad6e359eb2 (diff)
avformat/mxfdec: Fix mixed declaration and code
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mxfdec.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index 656465b4d2..cdb5c4ed11 100644
--- a/libavformat/mxfdec.c
+++ b/libavformat/mxfdec.c
@@ -1861,8 +1861,9 @@ static int mxf_add_metadata_stream(MXFContext *mxf, MXFTrack *track)
const MXFCodecUL *codec_ul = NULL;
MXFPackage tmp_package;
AVStream *st;
+ int j;
- for (int j = 0; j < track->sequence->structural_components_count; j++) {
+ for (j = 0; j < track->sequence->structural_components_count; j++) {
component = mxf_resolve_sourceclip(mxf, &track->sequence->structural_components_refs[j]);
if (!component)
continue;
@@ -2668,10 +2669,12 @@ static int is_pcm(enum AVCodecID codec_id)
static AVStream* mxf_get_opatom_stream(MXFContext *mxf)
{
+ int i;
+
if (mxf->op != OPAtom)
return NULL;
- for (int i = 0; i < mxf->fc->nb_streams; i++) {
+ for (i = 0; i < mxf->fc->nb_streams; i++) {
if (mxf->fc->streams[i]->codecpar->codec_type == AVMEDIA_TYPE_DATA)
continue;
return mxf->fc->streams[i];