diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2012-08-20 08:54:11 -0700 |
---|---|---|
committer | android code review <noreply-gerritcodereview@google.com> | 2012-08-20 08:54:11 -0700 |
commit | cd622346235829f60246a061560adf5921ba129c (patch) | |
tree | f3e6809ef93057af3315e731518ea7d87cd291cc /media/libstagefright | |
parent | 02a4ec216cf5ca903e1765ca3e7ff2985436b236 (diff) | |
parent | c867a50ec5317e74602798e2e8435cde313b91e9 (diff) | |
download | frameworks_av-cd622346235829f60246a061560adf5921ba129c.zip frameworks_av-cd622346235829f60246a061560adf5921ba129c.tar.gz frameworks_av-cd622346235829f60246a061560adf5921ba129c.tar.bz2 |
Merge "MPEG2TSWriter: Fix an off-by-one in the condition for padding"
Diffstat (limited to 'media/libstagefright')
-rw-r--r-- | media/libstagefright/MPEG2TSWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libstagefright/MPEG2TSWriter.cpp b/media/libstagefright/MPEG2TSWriter.cpp index 217c17a..92f12af 100644 --- a/media/libstagefright/MPEG2TSWriter.cpp +++ b/media/libstagefright/MPEG2TSWriter.cpp @@ -934,7 +934,7 @@ void MPEG2TSWriter::writeAccessUnit( size_t offset = copy; while (offset < accessUnit->size()) { - bool lastAccessUnit = ((accessUnit->size() - offset) < 183); + bool lastAccessUnit = ((accessUnit->size() - offset) < 184); // for subsequent fragments of "buffer": // 0x47 // transport_error_indicator = b0 |