@@ -963,8 +963,8 @@ static int udp_open(URLContext *h, const char *uri, int flags)
*/
if (is_output && s->bitrate && !s->circular_buffer_size) {
- /* Warn user in case of 'circular_buffer_size' is not set */
- av_log(h, AV_LOG_WARNING,"'bitrate' option was set but 'circular_buffer_size' is not, but required\n");
+ av_log(h, AV_LOG_ERROR,"'bitrate' option was set but 'circular_buffer_size' is not, but required\n");
+ goto fail;
}
if ((!is_output && s->circular_buffer_size) || (is_output && s->bitrate && s->circular_buffer_size)) {
Signed-off-by: Derek Buitenhuis <derekb@vimeo.com> --- There was no reasoning in the commit that added this, so maybe someone on the list has some insights. --- libavformat/udp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)