diff --git a/libavformat/ffmdec.c b/libavformat/ffmdec.c index 2b7ae7ed35f67377a570f41a6ee1b338fa76ccc9..4b8e939e66ec4dfcc595304079b0545db460835b 100644 --- a/libavformat/ffmdec.c +++ b/libavformat/ffmdec.c @@ -325,7 +325,8 @@ static int ffm_read_header(AVFormatContext *s, AVFormatParameters *ap) codec->qcompress = avio_rb16(pb) / 10000.0; codec->qblur = avio_rb16(pb) / 10000.0; codec->bit_rate_tolerance = avio_rb32(pb); - codec->rc_eq = av_strdup(get_strz(pb, rc_eq_buf, sizeof(rc_eq_buf))); + avio_get_str(pb, INT_MAX, rc_eq_buf, sizeof(rc_eq_buf)); + codec->rc_eq = av_strdup(rc_eq_buf); codec->rc_max_rate = avio_rb32(pb); codec->rc_min_rate = avio_rb32(pb); codec->rc_buffer_size = avio_rb32(pb); diff --git a/libavformat/mov.c b/libavformat/mov.c index 3bb42fe3edb04d5b0bba5cca3ec001b4c3ab4ae0..06b2f87b0db06ecd2db5850b0159dd4faede6ef3 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -2619,7 +2619,7 @@ static void mov_read_chapters(AVFormatContext *s) if (len == 1 || len == 2) title[len] = 0; else - get_strz(sc->pb, title + 2, len - 1); + avio_get_str(sc->pb, INT_MAX, title + 2, len - 1); } }