summaryrefslogtreecommitdiff
path: root/libavformat/sapenc.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-03-31 17:58:04 +0200
committerAnton Khirnov <anton@khirnov.net>2011-04-04 17:45:20 +0200
commit5958df341de69d94b9958c10cc4aaca510b8cd24 (patch)
tree07f936eda1252378b930570a44d9ec2ffc296e52 /libavformat/sapenc.c
parent1869ea03b7fb8e3db2f034f4214e03bd3f8b3d30 (diff)
downloadffmpeg-5958df341de69d94b9958c10cc4aaca510b8cd24.tar.gz
avio: deprecate url_max_packet_size().
URLContext.max_packet_size should be used directly.
Diffstat (limited to 'libavformat/sapenc.c')
-rw-r--r--libavformat/sapenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/sapenc.c b/libavformat/sapenc.c
index 14be5a7428..c216342a4c 100644
--- a/libavformat/sapenc.c
+++ b/libavformat/sapenc.c
@@ -218,7 +218,7 @@ static int sap_write_header(AVFormatContext *s)
pos += strlen(&sap->ann[pos]);
sap->ann_size = pos;
- if (sap->ann_size > url_get_max_packet_size(sap->ann_fd)) {
+ if (sap->ann_size > sap->ann_fd->max_packet_size) {
av_log(s, AV_LOG_ERROR, "Announcement too large to send in one "
"packet\n");
goto fail;