electronicarts: use av_log_ask_for_sample
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
039f4ff4c2
commit
d168fcb68f
@ -184,7 +184,7 @@ static int process_audio_header_elements(AVFormatContext *s)
|
||||
case 3: ea->audio_codec = AV_CODEC_ID_ADPCM_EA_R3; break;
|
||||
case -1: break;
|
||||
default:
|
||||
av_log(s, AV_LOG_ERROR, "unsupported stream type; revision=%i\n", revision);
|
||||
av_log_ask_for_sample(s, "unsupported stream type; revision=%i\n", revision);
|
||||
return 0;
|
||||
}
|
||||
switch (revision2) {
|
||||
@ -194,12 +194,12 @@ static int process_audio_header_elements(AVFormatContext *s)
|
||||
case -1: break;
|
||||
default:
|
||||
ea->audio_codec = AV_CODEC_ID_NONE;
|
||||
av_log(s, AV_LOG_ERROR, "unsupported stream type; revision2=%i\n", revision2);
|
||||
av_log_ask_for_sample(s, "unsupported stream type; revision2=%i\n", revision2);
|
||||
return 0;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
av_log(s, AV_LOG_ERROR, "unsupported stream type; compression_type=%i\n", compression_type);
|
||||
av_log_ask_for_sample(s, "unsupported stream type; compression_type=%i\n", compression_type);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -235,7 +235,7 @@ static int process_audio_header_eacs(AVFormatContext *s)
|
||||
case 1: ea->audio_codec = AV_CODEC_ID_PCM_MULAW; ea->bytes = 1; break;
|
||||
case 2: ea->audio_codec = AV_CODEC_ID_ADPCM_IMA_EA_EACS; break;
|
||||
default:
|
||||
av_log (s, AV_LOG_ERROR, "unsupported stream type; audio compression_type=%i\n", compression_type);
|
||||
av_log_ask_for_sample(s, "unsupported stream type; audio compression_type=%i\n", compression_type);
|
||||
}
|
||||
|
||||
return 1;
|
||||
@ -323,7 +323,7 @@ static int process_ea_header(AVFormatContext *s) {
|
||||
switch (blockid) {
|
||||
case ISNh_TAG:
|
||||
if (avio_rl32(pb) != EACS_TAG) {
|
||||
av_log (s, AV_LOG_ERROR, "unknown 1SNh headerid\n");
|
||||
av_log_ask_for_sample(s, "unknown 1SNh headerid\n");
|
||||
return 0;
|
||||
}
|
||||
err = process_audio_header_eacs(s);
|
||||
@ -335,7 +335,7 @@ static int process_ea_header(AVFormatContext *s) {
|
||||
if (blockid == GSTR_TAG) {
|
||||
avio_skip(pb, 4);
|
||||
} else if ((blockid & 0xFFFF)!=PT00_TAG) {
|
||||
av_log (s, AV_LOG_ERROR, "unknown SCHl headerid\n");
|
||||
av_log_ask_for_sample(s, "unknown SCHl headerid\n");
|
||||
return 0;
|
||||
}
|
||||
err = process_audio_header_elements(s);
|
||||
|
Loading…
x
Reference in New Issue
Block a user