[FFmpeg-devel] [PATCH]Allow easy png streamcopying

Carl Eugen Hoyos cehoyos at ag.or.at
Mon Apr 27 10:13:59 CEST 2015


On Thursday 23 April 2015 03:05:48 pm Michael Niedermayer wrote:
> without really thinking about it, the idea to remove the extension
> for apng or change it to .apng, seems like a good idea

New patch attached.

Please comment, Carl Eugen
-------------- next part --------------
From 56b8fa753399c53d83231bc56b7461ccaeb62de3 Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <cehoyos at ag.or.at>
Date: Mon, 27 Apr 2015 10:12:22 +0200
Subject: [PATCH] lavf/apngenc: Allow png stream-copying by renaming apng
 default extension.

---
 Changelog             |    2 +-
 libavformat/apngenc.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Changelog b/Changelog
index 02dd77b..a052a18 100644
--- a/Changelog
+++ b/Changelog
@@ -12,7 +12,7 @@ version <next>:
 - Detelecine filter
 - Intel QSV-accelerated H.264 encoding
 - MMAL-accelerated H.264 decoding
-- basic APNG encoder and muxer
+- basic APNG encoder and muxer with default extension "apng"
 - unpack DivX-style packed B-frames in MPEG-4 bitstream filter
 - WebM Live Chunk Muxer
 - nvenc level and tier options
diff --git a/libavformat/apngenc.c b/libavformat/apngenc.c
index 4b31309..dcf6b90 100644
--- a/libavformat/apngenc.c
+++ b/libavformat/apngenc.c
@@ -259,7 +259,7 @@ AVOutputFormat ff_apng_muxer = {
     .name           = "apng",
     .long_name      = NULL_IF_CONFIG_SMALL("Animated Portable Network Graphics"),
     .mime_type      = "image/png",
-    .extensions     = "png",
+    .extensions     = "apng",
     .priv_data_size = sizeof(APNGMuxContext),
     .audio_codec    = AV_CODEC_ID_NONE,
     .video_codec    = AV_CODEC_ID_APNG,
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list