summaryrefslogtreecommitdiffstats
path: root/demux/demux_rawvideo.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-07-08 00:35:04 +0200
committerwm4 <wm4@nowhere>2013-07-08 00:35:04 +0200
commitc4f33d784a058325b26ba82f34c43dab0cb19dc8 (patch)
treef2440ba82efc84193ba7f4599416bea3989c17a1 /demux/demux_rawvideo.c
parentaac5d758c5a60f13162bc2b500618389bfd92602 (diff)
downloadmpv-c4f33d784a058325b26ba82f34c43dab0cb19dc8.tar.bz2
mpv-c4f33d784a058325b26ba82f34c43dab0cb19dc8.tar.xz
demux: remove some old stream header functions
Diffstat (limited to 'demux/demux_rawvideo.c')
-rw-r--r--demux/demux_rawvideo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/demux/demux_rawvideo.c b/demux/demux_rawvideo.c
index 1a09b8308a..c0b3b1980d 100644
--- a/demux/demux_rawvideo.c
+++ b/demux/demux_rawvideo.c
@@ -57,6 +57,7 @@ const m_option_t demux_rawvideo_opts[] = {
static demuxer_t* demux_rawvideo_open(demuxer_t* demuxer) {
+ struct sh_stream *sh;
sh_video_t* sh_video;
if(!width || !height){
@@ -113,7 +114,8 @@ static demuxer_t* demux_rawvideo_open(demuxer_t* demuxer) {
imgsize = width * height * bpp / 8;
}
- sh_video = new_sh_video(demuxer,0);
+ sh = new_sh_stream(demuxer, STREAM_VIDEO);
+ sh_video = sh->video;
sh_video->gsh->codec=decoder;
sh_video->format=imgfmt;
sh_video->fps=fps;