mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-30 03:12:08 +00:00
add some error processing
Originally committed as revision 10794 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
fa34563b2c
commit
2c82386df2
@ -166,6 +166,7 @@ static int process_ea_header(AVFormatContext *s) {
|
|||||||
|
|
||||||
for (i=0; i<5 && (!ea->audio_codec || !ea->video_codec); i++) {
|
for (i=0; i<5 && (!ea->audio_codec || !ea->video_codec); i++) {
|
||||||
unsigned int startpos = url_ftell(pb);
|
unsigned int startpos = url_ftell(pb);
|
||||||
|
int err = 0;
|
||||||
|
|
||||||
blockid = get_le32(pb);
|
blockid = get_le32(pb);
|
||||||
size = get_le32(pb);
|
size = get_le32(pb);
|
||||||
@ -179,14 +180,19 @@ static int process_ea_header(AVFormatContext *s) {
|
|||||||
av_log (s, AV_LOG_ERROR, "unknown SCHl headerid\n");
|
av_log (s, AV_LOG_ERROR, "unknown SCHl headerid\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
process_audio_header_elements(s);
|
err = process_audio_header_elements(s);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MVhd_TAG :
|
case MVhd_TAG :
|
||||||
process_video_header_vp6(s);
|
err = process_video_header_vp6(s);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (err < 0) {
|
||||||
|
av_log(s, AV_LOG_ERROR, "error parsing header: %i\n", err);
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
|
||||||
url_fseek(pb, startpos + size, SEEK_SET);
|
url_fseek(pb, startpos + size, SEEK_SET);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user