dec_video: fix function signature

Just why...? And why did this take 7 years?
This commit is contained in:
wm4 2013-11-25 23:09:40 +01:00
parent 4205bbf243
commit 83dc3a81f1
2 changed files with 6 additions and 4 deletions

View File

@ -205,8 +205,9 @@ bool video_init_best_codec(struct dec_video *d_video, char* video_decoders)
return !!d_video->vd_driver;
}
void *video_decode(struct dec_video *d_video, struct demux_packet *packet,
int drop_frame)
struct mp_image *video_decode(struct dec_video *d_video,
struct demux_packet *packet,
int drop_frame)
{
mp_image_t *mpi = NULL;
struct MPOpts *opts = d_video->opts;

View File

@ -69,8 +69,9 @@ bool video_init_best_codec(struct dec_video *d_video, char* video_decoders);
void video_uninit(struct dec_video *d_video);
struct demux_packet;
void *video_decode(struct dec_video *d_video, struct demux_packet *packet,
int drop_frame);
struct mp_image *video_decode(struct dec_video *d_video,
struct demux_packet *packet,
int drop_frame);
int video_get_colors(struct dec_video *d_video, const char *item, int *value);
int video_set_colors(struct dec_video *d_video, const char *item, int value);