[FFmpeg-cvslog] pngdec: use AVFrame accessor functions

Michael Niedermayer git at videolan.org
Fri Mar 1 23:48:39 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Mar  1 22:24:56 2013 +0100| [f59ff8faa2142b6394f46ecdf1f83458eca4d802] | committer: Michael Niedermayer

pngdec: use AVFrame accessor functions

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f59ff8faa2142b6394f46ecdf1f83458eca4d802
---

 libavcodec/pngdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c
index 193e35e..36db29e 100644
--- a/libavcodec/pngdec.c
+++ b/libavcodec/pngdec.c
@@ -853,7 +853,7 @@ static int decode_frame(AVCodecContext *avctx,
         }
     }
 
-    s->current_picture->metadata = metadata;
+    av_frame_set_metadata(&s->current_picture, metadata);
     metadata   = NULL;
     *picture   = *s->current_picture;
     *got_frame = 1;



More information about the ffmpeg-cvslog mailing list