mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2024-11-22 23:41:32 +02:00
mplayer: fix mplayer bug for Theora frametime computation w/ emtpy packets
This commit is contained in:
parent
4ce8eb4b47
commit
6bfc32e709
23
mplayer/patches/030-fix-theora-emtpy-packets.patch
Normal file
23
mplayer/patches/030-fix-theora-emtpy-packets.patch
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
Index: MPlayer-r33333/libmpdemux/video.c
|
||||||
|
===================================================================
|
||||||
|
--- MPlayer-r33333.orig/libmpdemux/video.c 2011-04-30 13:42:17.000000000 +0200
|
||||||
|
+++ MPlayer-r33333/libmpdemux/video.c 2011-04-30 13:43:31.000000000 +0200
|
||||||
|
@@ -61,6 +61,8 @@
|
||||||
|
VIDEO_OTHER
|
||||||
|
} video_codec_t;
|
||||||
|
|
||||||
|
+#define FOURCC_THEORA mmioFOURCC('t', 'h', 'e', 'o')
|
||||||
|
+
|
||||||
|
static video_codec_t find_video_codec(sh_video_t *sh_video)
|
||||||
|
{
|
||||||
|
demux_stream_t *d_video=sh_video->ds;
|
||||||
|
@@ -581,7 +583,8 @@
|
||||||
|
frame_time*=sh_video->frametime;
|
||||||
|
|
||||||
|
// override frame_time for variable/unknown FPS formats:
|
||||||
|
- if(!force_fps) switch(demuxer->file_format){
|
||||||
|
+ if(!force_fps && sh_video->format != FOURCC_THEORA)
|
||||||
|
+ switch(demuxer->file_format){
|
||||||
|
case DEMUXER_TYPE_GIF:
|
||||||
|
case DEMUXER_TYPE_MATROSKA:
|
||||||
|
case DEMUXER_TYPE_MNG:
|
Loading…
Reference in New Issue
Block a user