summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2011-01-09 18:47:46 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2011-01-31 16:03:10 +0200
commit9a021242a9cd6d033be8e1294ffc827406a49b22 (patch)
tree5f4d48dcd439b942e54ba329076b82b642b6caea
parent659c50008485bf74911c4db92abc9152920a99cb (diff)
downloadmpv-9a021242a9cd6d033be8e1294ffc827406a49b22.tar.bz2
mpv-9a021242a9cd6d033be8e1294ffc827406a49b22.tar.xz
codecs.conf, vd_ffmpeg: Enable fflagarith video decoder
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32773 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--etc/codecs.conf8
-rw-r--r--libmpcodecs/vd_ffmpeg.c2
2 files changed, 9 insertions, 1 deletions
diff --git a/etc/codecs.conf b/etc/codecs.conf
index afcbb74c2e..d353bb5716 100644
--- a/etc/codecs.conf
+++ b/etc/codecs.conf
@@ -2042,6 +2042,14 @@ videocodec cineformhd
guid 0xAD83011E, 0x01d1, 0x4623, 0x91, 0xfd, 0x6b, 0x75, 0xf1, 0x83, 0xc5, 0xa9
out UYVY
+videocodec fflagarith
+ info "Lagarith Lossless Video Codec"
+ status buggy
+ fourcc LAGS
+ driver ffmpeg
+ dll lagarith
+ out YV12
+
videocodec lagarith
info "Lagarith Lossless Video Codec"
comment "http://lags.leetcode.net/codec.html, requires an MMX2 CPU."
diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c
index 6cb296729c..058446936d 100644
--- a/libmpcodecs/vd_ffmpeg.c
+++ b/libmpcodecs/vd_ffmpeg.c
@@ -192,7 +192,7 @@ static int init(sh_video_t *sh){
if(sh->opts->vd_use_slices && (lavc_codec->capabilities&CODEC_CAP_DRAW_HORIZ_BAND) && !do_vis_debug)
ctx->do_slices=1;
- if(lavc_codec->capabilities&CODEC_CAP_DR1 && !do_vis_debug && lavc_codec->id != CODEC_ID_H264 && lavc_codec->id != CODEC_ID_INTERPLAY_VIDEO && lavc_codec->id != CODEC_ID_ROQ && lavc_codec->id != CODEC_ID_VP8)
+ if(lavc_codec->capabilities&CODEC_CAP_DR1 && !do_vis_debug && lavc_codec->id != CODEC_ID_H264 && lavc_codec->id != CODEC_ID_INTERPLAY_VIDEO && lavc_codec->id != CODEC_ID_ROQ && lavc_codec->id != CODEC_ID_VP8 && lavc_codec->id != CODEC_ID_LAGARITH)
ctx->do_dr1=1;
ctx->b_age= ctx->ip_age[0]= ctx->ip_age[1]= 256*256*256*64;
ctx->ip_count= ctx->b_count= 0;