Commit d168fcb6 authored by Peter Ross's avatar Peter Ross Committed by Michael Niedermayer

electronicarts: use av_log_ask_for_sample

Reviewed-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 039f4ff4
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment