[Live-devel] Support for raw video format

Ross Finlayson finlayson at live555.com
Mon Sep 10 04:11:42 PDT 2018


Thanks.  I’ve made this fix now.

FYI, the actual patch is simpler than the one that you proposed.  It’s just:

diff -c RawVideoRTPSource.cpp~ RawVideoRTPSource.cpp
*** RawVideoRTPSource.cpp~      2018-08-28 13:28:28.345447000 -0700
--- RawVideoRTPSource.cpp       2018-09-10 04:04:11.162413000 -0700
***************
*** 132,138 ****
    // Make sure that we have enough bytes for all of the line lengths promised:
    if (totalLength > packetSize) {
      fNumLines = 0;
!     delete[] fLineHeaders;
      return False;
    }
  
--- 132,138 ----
    // Make sure that we have enough bytes for all of the line lengths promised:
    if (totalLength > packetSize) {
      fNumLines = 0;
!     delete[] fLineHeaders; fLineHeaders = NULL;
      return False;
    }


because you don’t need to set
	fLineHeaders = NULL;
in the destructor, because “fLineHeaders” is never used again.


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/




More information about the live-devel mailing list