aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rawvideodec.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-05-24 07:43:01 +0200
committerAnton Khirnov <anton@khirnov.net>2011-05-27 06:52:52 +0200
commit973f686a6c4f7c3b9120a1e22cb7c0159ea9aee2 (patch)
tree808301a92dabb18ef5860040b1cb8bdfdc5eb2bd /libavformat/rawvideodec.c
parent724a900c454f7b41066edcc0443bff083d59f81c (diff)
downloadffmpeg-973f686a6c4f7c3b9120a1e22cb7c0159ea9aee2.tar.gz
rawdec: add video_size private option.
Diffstat (limited to 'libavformat/rawvideodec.c')
-rw-r--r--libavformat/rawvideodec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/rawvideodec.c b/libavformat/rawvideodec.c
index a29f7da7a4..f8d9b65f36 100644
--- a/libavformat/rawvideodec.c
+++ b/libavformat/rawvideodec.c
@@ -47,11 +47,12 @@ static int rawvideo_read_packet(AVFormatContext *s, AVPacket *pkt)
AVInputFormat ff_rawvideo_demuxer = {
"rawvideo",
NULL_IF_CONFIG_SMALL("raw video format"),
- 0,
+ sizeof(FFRawVideoDemuxerContext),
NULL,
ff_raw_read_header,
rawvideo_read_packet,
.flags= AVFMT_GENERIC_INDEX,
.extensions = "yuv,cif,qcif,rgb",
.value = CODEC_ID_RAWVIDEO,
+ .priv_class = &ff_rawvideo_demuxer_class,
};