Root/mplayer/patches/030-fix-theora-emtpy-packets.patch

Source at commit 1b3135c created 8 years 3 months ago.
By Xiangfu Liu, new package: SDL-widgets: a GUI toolkit on top of the SDL libraries
1Index: MPlayer-r33333/libmpdemux/video.c
2===================================================================
3--- MPlayer-r33333.orig/libmpdemux/video.c 2011-04-30 13:42:17.000000000 +0200
4+++ MPlayer-r33333/libmpdemux/video.c 2011-04-30 13:43:31.000000000 +0200
5@@ -61,6 +61,8 @@
6   VIDEO_OTHER
7 } video_codec_t;
8 
9+#define FOURCC_THEORA mmioFOURCC('t', 'h', 'e', 'o')
10+
11 static video_codec_t find_video_codec(sh_video_t *sh_video)
12 {
13   demux_stream_t *d_video=sh_video->ds;
14@@ -581,7 +583,8 @@
15     frame_time*=sh_video->frametime;
16 
17     // override frame_time for variable/unknown FPS formats:
18- if(!force_fps) switch(demuxer->file_format){
19+ if(!force_fps && sh_video->format != FOURCC_THEORA)
20+ switch(demuxer->file_format){
21       case DEMUXER_TYPE_GIF:
22       case DEMUXER_TYPE_MATROSKA:
23       case DEMUXER_TYPE_MNG:
24

Archive Download this file



interactive