summaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-11-28 17:17:36 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-11-28 17:17:36 +0000
commit7f25df4cd38fe9de6dd88f806a3994be5302a823 (patch)
treea48ba2e3f7cf958a4c4d84190740f1e0efcbd649 /libavformat
parent6a287fd7ce5ea69f4eeadda6a049d669eb8efb46 (diff)
downloadffmpeg-streaming-7f25df4cd38fe9de6dd88f806a3994be5302a823.zip
ffmpeg-streaming-7f25df4cd38fe9de6dd88f806a3994be5302a823.tar.gz
move source_package declaration in the loop and reset it each iteration
Originally committed as revision 7180 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mxf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mxf.c b/libavformat/mxf.c
index 7bf0b84..b206799 100644
--- a/libavformat/mxf.c
+++ b/libavformat/mxf.c
@@ -758,7 +758,6 @@ static void *mxf_resolve_strong_ref(MXFContext *mxf, UID *strong_ref)
static int mxf_parse_structural_metadata(MXFContext *mxf)
{
MXFPackage *material_package = NULL;
- MXFPackage *source_package = NULL;
MXFPackage *temp_package = NULL;
int i, j, k;
@@ -780,6 +779,7 @@ static int mxf_parse_structural_metadata(MXFContext *mxf)
}
for (i = 0; i < material_package->tracks_count; i++) {
+ MXFPackage *source_package = NULL;
MXFTrack *material_track = NULL;
MXFTrack *source_track = NULL;
MXFTrack *temp_track = NULL;
OpenPOWER on IntegriCloud