Revert "Fix memory leaks of special NAL sequences"

This reverts commit d9987105d0d9c27e920b4113875e82b315d050a4.
This commit is contained in:
Cameron Gutman 2013-11-21 16:24:47 -05:00
parent e6959e66e4
commit ff50b5fdab

View File

@ -189,8 +189,6 @@ public class AvVideoDepacketizer {
location.length--; location.length--;
location.offset++; location.offset++;
} }
specialSeq.free();
} }
// Move to the next special sequence // Move to the next special sequence
@ -209,12 +207,8 @@ public class AvVideoDepacketizer {
if (currentlyDecoding != AvDecodeUnit.TYPE_UNKNOWN || if (currentlyDecoding != AvDecodeUnit.TYPE_UNKNOWN ||
!NAL.isPadding(specialSeq)) !NAL.isPadding(specialSeq))
{ {
specialSeq.free();
break; break;
} }
else {
specialSeq.free();
}
} }
} }