mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-18 13:21:08 +00:00
avformat/imf: fix invalid resource handling
This commit is contained in:
parent
9f4df9a535
commit
23d968d55a
@ -608,11 +608,10 @@ static int push_main_audio_sequence(xmlNodePtr audio_sequence_elem, FFIMFCPL *cp
|
||||
ret = fill_trackfile_resource(resource_elem,
|
||||
&vt->resources[vt->resource_count],
|
||||
cpl);
|
||||
vt->resource_count++;
|
||||
if (ret) {
|
||||
if (ret)
|
||||
av_log(NULL, AV_LOG_ERROR, "Invalid Resource\n");
|
||||
continue;
|
||||
}
|
||||
else
|
||||
vt->resource_count++;
|
||||
|
||||
resource_elem = xmlNextElementSibling(resource_elem);
|
||||
}
|
||||
@ -691,11 +690,10 @@ static int push_main_image_2d_sequence(xmlNodePtr image_sequence_elem, FFIMFCPL
|
||||
ret = fill_trackfile_resource(resource_elem,
|
||||
&cpl->main_image_2d_track->resources[cpl->main_image_2d_track->resource_count],
|
||||
cpl);
|
||||
cpl->main_image_2d_track->resource_count++;
|
||||
if (ret) {
|
||||
if (ret)
|
||||
av_log(NULL, AV_LOG_ERROR, "Invalid Resource\n");
|
||||
continue;
|
||||
}
|
||||
else
|
||||
cpl->main_image_2d_track->resource_count++;
|
||||
|
||||
resource_elem = xmlNextElementSibling(resource_elem);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user