avformat/mxfdec: Fix mixed declaration and code
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -1861,8 +1861,9 @@ static int mxf_add_metadata_stream(MXFContext *mxf, MXFTrack *track)
|
|||||||
const MXFCodecUL *codec_ul = NULL;
|
const MXFCodecUL *codec_ul = NULL;
|
||||||
MXFPackage tmp_package;
|
MXFPackage tmp_package;
|
||||||
AVStream *st;
|
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]);
|
component = mxf_resolve_sourceclip(mxf, &track->sequence->structural_components_refs[j]);
|
||||||
if (!component)
|
if (!component)
|
||||||
continue;
|
continue;
|
||||||
@@ -2668,10 +2669,12 @@ static int is_pcm(enum AVCodecID codec_id)
|
|||||||
|
|
||||||
static AVStream* mxf_get_opatom_stream(MXFContext *mxf)
|
static AVStream* mxf_get_opatom_stream(MXFContext *mxf)
|
||||||
{
|
{
|
||||||
|
int i;
|
||||||
|
|
||||||
if (mxf->op != OPAtom)
|
if (mxf->op != OPAtom)
|
||||||
return NULL;
|
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)
|
if (mxf->fc->streams[i]->codecpar->codec_type == AVMEDIA_TYPE_DATA)
|
||||||
continue;
|
continue;
|
||||||
return mxf->fc->streams[i];
|
return mxf->fc->streams[i];
|
||||||
|
Reference in New Issue
Block a user