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