summaryrefslogtreecommitdiffstats
path: root/libavformat/avidec.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2016-04-14 18:21:08 +0200
committerPaul B Mahol <onemda@gmail.com>2016-04-14 18:21:08 +0200
commit323b8c95e41094b90ed2a9bdd9a06d22d2f74856 (patch)
treed0bb264c76b926aa306f9668adfa79361d8a56db /libavformat/avidec.c
parent8e26bdd59bf559d00c7e60c53fff292de10139ff (diff)
downloadffmpeg-streaming-323b8c95e41094b90ed2a9bdd9a06d22d2f74856.zip
ffmpeg-streaming-323b8c95e41094b90ed2a9bdd9a06d22d2f74856.tar.gz
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/avidec.c')
-rw-r--r--libavformat/avidec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 87c9bd4..b114a74 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -762,7 +762,7 @@ static int avi_read_header(AVFormatContext *s)
st->codecpar->extradata_size = esize - 10 * 4;
} else
st->codecpar->extradata_size = size - 10 * 4;
- if (ff_get_extradata(st->codecpar, pb, st->codecpar->extradata_size) < 0)
+ if (ff_get_extradata(s, st->codecpar, pb, st->codecpar->extradata_size) < 0)
return AVERROR(ENOMEM);
}
@@ -917,7 +917,7 @@ static int avi_read_header(AVFormatContext *s)
st = s->streams[stream_index];
if (size<(1<<30)) {
- if (ff_get_extradata(st->codecpar, pb, size) < 0)
+ if (ff_get_extradata(s, st->codecpar, pb, size) < 0)
return AVERROR(ENOMEM);
}
OpenPOWER on IntegriCloud