summaryrefslogtreecommitdiff
path: root/libavformat/mov_chan.h
diff options
context:
space:
mode:
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>2012-09-06 12:46:37 +0200
committerMartin Storsjö <martin@martin.st>2012-09-07 10:49:35 +0300
commit9afb7061f938831248942050cfdb449e014ed427 (patch)
tree0320384233a686f37adab9e5fd42dec763082a15 /libavformat/mov_chan.h
parent91a84a5247857d18b211f45129cf39b6788f0022 (diff)
mov_chan: Pass a separate AVIOContext for reading
This fixes crashes when called from rtpdec_qt, where AVFormatContext->pb is null, a crash present since 3bab7cd128. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/mov_chan.h')
-rw-r--r--libavformat/mov_chan.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/mov_chan.h b/libavformat/mov_chan.h
index 3972aa6178..3fae93961e 100644
--- a/libavformat/mov_chan.h
+++ b/libavformat/mov_chan.h
@@ -57,10 +57,12 @@ uint32_t ff_mov_get_channel_layout_tag(enum AVCodecID codec_id,
* Read 'chan' tag from the input stream.
*
* @param s AVFormatContext
+ * @param pb AVIOContext
* @param st The stream to set codec values for
* @param size Remaining size in the 'chan' tag
* @return 0 if ok, or negative AVERROR code on failure
*/
-int ff_mov_read_chan(AVFormatContext *s, AVStream *st, int64_t size);
+int ff_mov_read_chan(AVFormatContext *s, AVIOContext *pb, AVStream *st,
+ int64_t size);
#endif /* AVFORMAT_MOV_CHAN_H */