summaryrefslogtreecommitdiff
path: root/libavformat/ffmdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-03-06 02:10:26 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-03-06 02:16:00 +0100
commit4118d66cb39f96a227c2f90d325a73045afe091e (patch)
tree9ed41facebf8cec3cce6b0d95cc1085dce5bdacb /libavformat/ffmdec.c
parentb09e5068203bb9852734c04e37f852dd4d1d1137 (diff)
Revert "lavf: deprecate get_strz() in favor of avio_get_str"
This API is simply ridiculous. We of course keep API/ABI compatibility only useage of the worse API is reverted. This reverts commit 773947ba76c575abc01ba128206c87440dad40ec.
Diffstat (limited to 'libavformat/ffmdec.c')
-rw-r--r--libavformat/ffmdec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/ffmdec.c b/libavformat/ffmdec.c
index 2977527b97..b956c75f86 100644
--- a/libavformat/ffmdec.c
+++ b/libavformat/ffmdec.c
@@ -325,8 +325,7 @@ 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);
- avio_get_str(pb, INT_MAX, rc_eq_buf, sizeof(rc_eq_buf));
- codec->rc_eq = av_strdup(rc_eq_buf);
+ codec->rc_eq = av_strdup(get_strz(pb, rc_eq_buf, sizeof(rc_eq_buf)));
codec->rc_max_rate = avio_rb32(pb);
codec->rc_min_rate = avio_rb32(pb);
codec->rc_buffer_size = avio_rb32(pb);