summaryrefslogtreecommitdiff
path: root/libavformat/electronicarts.c
diff options
context:
space:
mode:
authorPeter Ross <pross@xvid.org>2012-11-10 10:23:00 +1100
committerMichael Niedermayer <michaelni@gmx.at>2012-11-11 12:51:16 +0100
commitd168fcb68f2b8e416e5ad9cb74d42daf44e4598a (patch)
treeeae2ba56c4cc6b66d4a4d72ab02b3b17ec6e8f20 /libavformat/electronicarts.c
parent039f4ff4c2f802bd5dc41096d9e84ba4b7e90d41 (diff)
electronicarts: use av_log_ask_for_sample
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/electronicarts.c')
-rw-r--r--libavformat/electronicarts.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libavformat/electronicarts.c b/libavformat/electronicarts.c
index c5533f2674..0847a3accb 100644
--- a/libavformat/electronicarts.c
+++ b/libavformat/electronicarts.c
@@ -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);