[FFmpeg-cvslog] electronicarts: use av_log_ask_for_sample
Peter Ross
git at videolan.org
Sun Nov 11 12:57:04 CET 2012
ffmpeg | branch: master | Peter Ross <pross at xvid.org> | Sat Nov 10 10:23:00 2012 +1100| [d168fcb68f2b8e416e5ad9cb74d42daf44e4598a] | committer: Michael Niedermayer
electronicarts: use av_log_ask_for_sample
Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d168fcb68f2b8e416e5ad9cb74d42daf44e4598a
---
libavformat/electronicarts.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/libavformat/electronicarts.c b/libavformat/electronicarts.c
index c5533f2..0847a3a 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);
More information about the ffmpeg-cvslog
mailing list