annotate libmpcodecs/vd_null.c @ 16718:044260623695

makes demux_lavf (-demuxer 35) use the framerate specified in the container if it's set and only fall back to the codec framerate if the former is not set. This solves the issue of some avi's playing at 30000/1 fps instead of the correct framerate. Patch by Ivo < ivop AH euronet POIS nl > Original thread: Date: Sep 25, 2005 12:34 AM Subject: [MPlayer-dev-eng] [PATCH] make demux_lavf use container framerate
author gpoirier
date Mon, 10 Oct 2005 05:45:38 +0000
parents 0c8d85e22ff5
children 0f1b5b68af32
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4879
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
1 #include <stdio.h>
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
2 #include <stdlib.h>
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
3
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
4 #include "config.h"
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
5 #include "mp_msg.h"
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
6
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
7 #include "vd_internal.h"
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
8
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
9 static vd_info_t info =
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
10 {
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
11 "Null video decoder",
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
12 "null",
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
13 "A'rpi",
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
14 "A'rpi",
7191
1eadce15446c -afm/-vfm help implemenetd, some cosmetics of ad/vd codec names/comments
arpi
parents: 5169
diff changeset
15 "no decoding"
4879
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
16 };
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
17
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
18 LIBVD_EXTERN(null)
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
19
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
20 // to set/get/query special features/parameters
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
21 static int control(sh_video_t *sh,int cmd,void* arg,...){
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
22 return CONTROL_UNKNOWN;
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
23 }
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
24
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
25 // init driver
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
26 static int init(sh_video_t *sh){
7941
0c8d85e22ff5 config_vo error handling
arpi
parents: 7191
diff changeset
27 if(!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,IMGFMT_BGR24)) return 0;
4879
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
28 return 1;
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
29 }
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
30
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
31 // uninit driver
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
32 static void uninit(sh_video_t *sh){
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
33 }
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
34
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
35 // decode a frame
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
36 static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
37 return NULL;
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
38 }
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
39