Hack around an issue where data gets added after the frame is thrown away

This commit is contained in:
Cameron Gutman 2014-02-27 01:31:07 -05:00
parent 9b6e12497e
commit c8c7512600

View File

@ -179,9 +179,12 @@ public class VideoDepacketizer {
avcFrameDataLength = 0; avcFrameDataLength = 0;
} }
// Add the payload data to the chain // FIXME: This check shouldn't be needed
avcFrameDataChain.add(location); if (avcFrameDataChain != null) {
avcFrameDataLength += location.length; // Add the payload data to the chain
avcFrameDataChain.add(location);
avcFrameDataLength += location.length;
}
} }
public void addInputData(VideoPacket packet) public void addInputData(VideoPacket packet)