[SCM] libav/experimental: Re-Add support for PNG or PNM as watermark images, which was broken since the move to image2 API Patch by Victor Paesa <wzrlpy at arsystel.com> Original thread: Date: Aug 13, 2006 9:18 AM Subject: [Ffmpeg-devel] [PATCH] Attempt image2 in watermark vhook

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:50:23 UTC 2013


The following commit has been merged in the experimental branch:
commit dd93315340cb597bf0c84f20e03803f042396c8b
Author: Víctor Paesa <wzrlpy at arsystel.com>
Date:   Wed Aug 30 14:11:27 2006 +0000

    Re-Add support for PNG or PNM as watermark images, which was broken
    since the move to image2 API
    Patch by Victor Paesa <wzrlpy at arsystel.com>
    Original thread:
    Date: Aug 13, 2006 9:18 AM
    Subject: [Ffmpeg-devel] [PATCH] Attempt image2 in watermark vhook
    
    Originally committed as revision 6129 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/vhook/watermark.c b/vhook/watermark.c
index c64e93a..692b2a5 100644
--- a/vhook/watermark.c
+++ b/vhook/watermark.c
@@ -421,6 +421,10 @@ int get_watermark_picture(ContextInfo *ci, int cleanup)
                ci->p_ext = &(ci->filename[ci->i]);
             ci->file_iformat = av_find_input_format (ci->p_ext);
             if (0 == ci->file_iformat) {
+                av_log(NULL, AV_LOG_INFO, "get_watermark_picture() attempt to use image2 for [%s]\n", ci->p_ext);
+                ci->file_iformat = av_find_input_format ("image2");
+            }
+            if (0 == ci->file_iformat) {
                 av_log(NULL, AV_LOG_ERROR, "get_watermark_picture() Really failed to find iformat [%s]\n", ci->p_ext);
                 return -1;
             }

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list