[FFmpeg-devel] [PATCH 2/2] cafdec: replace deprecated get_strz()
Clément Bœsch
ubitux at gmail.com
Mon Jan 23 17:14:58 CET 2012
On Mon, Jan 23, 2012 at 04:07:18PM +0000, Paul B Mahol wrote:
>
> Signed-off-by: Paul B Mahol <onemda at gmail.com>
> ---
> 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);
> }
> }
Maybe you could also fix the ones in ffmdec.c and mov.c?
[...]
--
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120123/4cd21e54/attachment.asc>
More information about the ffmpeg-devel
mailing list