comparison truemotion1data.h @ 4829:e3161603a048 libavcodec

Remove a NAL unit's trailing zero bytes even when dst_length is 1. Consider the following byte sequence 00 00 01 0a 00 00 00 01 09 ... ^ ^ A B decode_nal() determines dst_length to be 1 (i. e. the byte between label A and B above). However, this byte is a trailing zero byte as the spec says the the current NAL unit is terminated by a byte sequence 00 00 00. The current code used a loop to decrement dst_length accordingly. But the loop doesn't start as the loop condition checks for dst_length > 1, which should read dst_length > 0. patch by Reinhard Nissl, rnissl gmx de
author diego
date Mon, 09 Apr 2007 13:39:35 +0000
parents c8c591fe26f8
children 4394344397d8
comparison
equal deleted inserted replaced
4828:58f1856608f6 4829:e3161603a048