diff options
author | Paul B Mahol <onemda@gmail.com> | 2016-04-14 18:21:08 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2016-04-14 18:21:08 +0200 |
commit | 323b8c95e41094b90ed2a9bdd9a06d22d2f74856 (patch) | |
tree | d0bb264c76b926aa306f9668adfa79361d8a56db /libavformat/utils.c | |
parent | 8e26bdd59bf559d00c7e60c53fff292de10139ff (diff) |
avformat: add AVFormatContext to ff_get_extradata()
Needed for av_log() inside that function.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index d6aba5a237..b43cfb1eee 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -3117,7 +3117,7 @@ int ff_alloc_extradata(AVCodecParameters *par, int size) return ret; } -int ff_get_extradata(AVCodecParameters *par, AVIOContext *pb, int size) +int ff_get_extradata(AVFormatContext *s, AVCodecParameters *par, AVIOContext *pb, int size) { int ret = ff_alloc_extradata(par, size); if (ret < 0) @@ -3126,7 +3126,7 @@ int ff_get_extradata(AVCodecParameters *par, AVIOContext *pb, int size) if (ret != size) { av_freep(&par->extradata); par->extradata_size = 0; - av_log(par, AV_LOG_ERROR, "Failed to read extradata of size %d\n", size); + av_log(s, AV_LOG_ERROR, "Failed to read extradata of size %d\n", size); return ret < 0 ? ret : AVERROR_INVALIDDATA; } |