avio: deprecate url_max_packet_size().

URLContext.max_packet_size should be used directly.
This commit is contained in:
Anton Khirnov
2011-03-31 17:58:04 +02:00
parent 1869ea03b7
commit 5958df341d
6 changed files with 9 additions and 19 deletions

View File

@@ -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;