Commit 9aaa2077 authored by Benoit Fouet's avatar Benoit Fouet

Add a context to av_log() calls.

Originally committed as revision 17775 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent c36264a3
...@@ -64,7 +64,7 @@ next_chunk: ...@@ -64,7 +64,7 @@ next_chunk:
if (url_feof(s->pb)) if (url_feof(s->pb))
return AVERROR(EIO); return AVERROR(EIO);
if (marker != TXD_MARKER && marker != TXD_MARKER2) { if (marker != TXD_MARKER && marker != TXD_MARKER2) {
av_log(NULL, AV_LOG_ERROR, "marker does not match\n"); av_log(s, AV_LOG_ERROR, "marker does not match\n");
return AVERROR(EIO); return AVERROR(EIO);
} }
...@@ -78,7 +78,7 @@ next_chunk: ...@@ -78,7 +78,7 @@ next_chunk:
case TXD_TEXTURE: case TXD_TEXTURE:
goto next_chunk; goto next_chunk;
default: default:
av_log(NULL, AV_LOG_ERROR, "unknown chunk id %i\n", id); av_log(s, AV_LOG_ERROR, "unknown chunk id %i\n", id);
return AVERROR(EIO); return AVERROR(EIO);
} }
......
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