Ross,
I had another thought here -- and I open this to anyone else trying to use
Live555 inside the scope of Xcode. My MediaSink subclass I implemented as a
.cpp file, (as a matter of fact I had to do the same with my RTSPClient
subclass, used a .cpp file), because if I attempted to use a .mm
Ross,
>> delete[] sPropRecords;
>>
>> with the error that the "pointer being freed was not allocated".
>
> I don't understand why you're getting an error here; the code looks OK.
Yeah, I know the feeling! ;-) But it would seem more than an issue of style,
it outright crashes the entire a
> This particular code snippet was taken directly from the Live555
> H264VideoFileSink class implementation of its afterGettingFrame() method, so
> the exact code and usage context should be identical.
>
> Anyway, I have taken my app run it on Xcode, and this line pretty quickly
> crashes the
All,
I have a MediaSink subclass I have created. In the afterGettingFrame() method,
I have the following code:
if (!fHaveWrittenFirstFrame) {
// If we have PPS/SPS NAL units encoded in a "sprop parameter string",
prepend these to the file:
unsigned numSPropRecords;
SPropRecord*