[FFmpeg-devel] [PATCH 1/5] lavf/rtpdec_asf: set AVFMT_FLAG_NONBLOCK
    Anton Khirnov 
    anton at khirnov.net
       
    Tue Nov  8 13:25:46 EET 2022
    
    
  
Makes sure EAGAIN from the internal ASF demuxer is propagated to the RTP
demuxer. Will be important in following commits.
---
 libavformat/rtpdec_asf.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/libavformat/rtpdec_asf.c b/libavformat/rtpdec_asf.c
index 72ead6975a..7824082d22 100644
--- a/libavformat/rtpdec_asf.c
+++ b/libavformat/rtpdec_asf.c
@@ -128,6 +128,7 @@ int ff_wms_parse_sdp_a_line(AVFormatContext *s, const char *p)
             return AVERROR(ENOMEM);
         }
         rt->asf_ctx->pb      = &pb.pub;
+        rt->asf_ctx->flags  |= AVFMT_FLAG_NONBLOCK;
         av_dict_set(&opts, "no_resync_search", "1", 0);
 
         if ((ret = ff_copy_whiteblacklists(rt->asf_ctx, s)) < 0) {
-- 
2.35.1
    
    
More information about the ffmpeg-devel
mailing list