On 23/02/15 22:31, Martin Storsjö wrote:
@@ -190,6 +190,10 @@ static void init_rtp_handler(RTPDynamicProtocolHandler 
*handler,
          rtsp_st->dynamic_protocol_context = handler->alloc();
          if (!rtsp_st->dynamic_protocol_context)
              rtsp_st->dynamic_handler = NULL;
+    } else if (handler->priv_data_size) {
+        rtsp_st->dynamic_protocol_context = 
av_mallocz(handler->priv_data_size);
+        if (!rtsp_st->dynamic_protocol_context)
+            rtsp_st->dynamic_handler = NULL;
      }
  }

Patch ok, but maybe we could use a more explicit failure path her.

lu
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to