[FFmpeg-cvslog] cafdec: replace deprecated get_strz()

Paul B Mahol git at videolan.org
Mon Jan 23 17:23:43 CET 2012


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Jan 23 17:18:44 2012 +0100| [c7579ad8e84c5aa28a0540604e8983cbde7ac37b] | committer: Carl Eugen Hoyos

cafdec: replace deprecated get_strz()

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

 libavformat/cafdec.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/cafdec.c b/libavformat/cafdec.c
index 3294f06..7933cd1 100644
--- a/libavformat/cafdec.c
+++ b/libavformat/cafdec.c
@@ -198,8 +198,8 @@ static void read_info_chunk(AVFormatContext *s, int64_t size)
     for (i = 0; i < nb_entries; i++) {
         char key[32];
         char value[1024];
-        get_strz(pb, key, sizeof(key));
-        get_strz(pb, value, sizeof(value));
+        avio_get_str(pb, sizeof(key), key, sizeof(key));
+        avio_get_str(pb, sizeof(value), value, sizeof(value));
         av_dict_set(&s->metadata, key, value, 0);
     }
 }



More information about the ffmpeg-cvslog mailing list