• Reinhard Nissl's avatar
    Remove a NAL unit's trailing zero bytes even when dst_length is 1. · 6ac9696e
    Reinhard Nissl authored
    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
    
    Originally committed as revision 8689 to svn://svn.ffmpeg.org/ffmpeg/trunk
    6ac9696e
Name
Last commit
Last update
..
alpha Loading commit data...
armv4l Loading commit data...
bfin Loading commit data...
i386 Loading commit data...
mlib Loading commit data...
ppc Loading commit data...
ps2 Loading commit data...
sh4 Loading commit data...
sparc Loading commit data...
4xm.c Loading commit data...
8bps.c Loading commit data...
Makefile Loading commit data...
a52dec.c Loading commit data...
aasc.c Loading commit data...
ac3.c Loading commit data...
ac3.h Loading commit data...
ac3enc.c Loading commit data...
ac3tab.h Loading commit data...
adpcm.c Loading commit data...
adx.c Loading commit data...
alac.c Loading commit data...
allcodecs.c Loading commit data...
amr.c Loading commit data...
apiexample.c Loading commit data...
asv1.c Loading commit data...
audioconvert.c Loading commit data...
avcodec.h Loading commit data...
avs.c Loading commit data...
beosthread.c Loading commit data...
bethsoftvideo.c Loading commit data...
bethsoftvideo.h Loading commit data...
bitstream.c Loading commit data...
bitstream.h Loading commit data...
bitstream_filter.c Loading commit data...
bmp.c Loading commit data...
bmp.h Loading commit data...
bmpenc.c Loading commit data...
bytestream.h Loading commit data...
c93.c Loading commit data...
cabac.c Loading commit data...
cabac.h Loading commit data...
cavs.c Loading commit data...
cavsdata.h Loading commit data...
cavsdsp.c Loading commit data...
cinepak.c Loading commit data...
cljr.c Loading commit data...
cook.c Loading commit data...
cookdata.h Loading commit data...
cscd.c Loading commit data...
cyuv.c Loading commit data...
dca.c Loading commit data...
dcadata.h Loading commit data...
dcahuff.h Loading commit data...
dct-test.c Loading commit data...
dnxhddata.h Loading commit data...
dnxhddec.c Loading commit data...
dpcm.c Loading commit data...
dsicinav.c Loading commit data...
dsputil.c Loading commit data...
dsputil.h Loading commit data...
dtsdec.c Loading commit data...
dv.c Loading commit data...
dvbsub.c Loading commit data...
dvbsubdec.c Loading commit data...
dvdata.h Loading commit data...
dvdsubdec.c Loading commit data...
dvdsubenc.c Loading commit data...
dxa.c Loading commit data...
error_resilience.c Loading commit data...
eval.c Loading commit data...
eval.h Loading commit data...
faac.c Loading commit data...
faad.c Loading commit data...
faandct.c Loading commit data...
faandct.h Loading commit data...
fdctref.c Loading commit data...
fft-test.c Loading commit data...
fft.c Loading commit data...
ffv1.c Loading commit data...
flac.c Loading commit data...
flacenc.c Loading commit data...
flashsv.c Loading commit data...
flashsvenc.c Loading commit data...
flicvideo.c Loading commit data...
fraps.c Loading commit data...
g726.c Loading commit data...
gif.c Loading commit data...
gifdec.c Loading commit data...
golomb.c Loading commit data...
golomb.h Loading commit data...
h261.c Loading commit data...
h261data.h Loading commit data...
h263.c Loading commit data...
h263data.h Loading commit data...
h263dec.c Loading commit data...
h264.c Loading commit data...
h264data.h Loading commit data...
h264dsp.c Loading commit data...
h264enc.c Loading commit data...
h264idct.c Loading commit data...
huffyuv.c Loading commit data...
idcinvideo.c Loading commit data...
imc.c Loading commit data...
imcdata.h Loading commit data...
imgconvert.c Loading commit data...
imgconvert_template.h Loading commit data...
imgresample.c Loading commit data...
indeo2.c Loading commit data...
indeo2data.h Loading commit data...
indeo3.c Loading commit data...
indeo3data.h Loading commit data...
interplayvideo.c Loading commit data...
jfdctfst.c Loading commit data...
jfdctint.c Loading commit data...
jpeg_ls.c Loading commit data...
jrevdct.c Loading commit data...
kmvc.c Loading commit data...
lcl.c Loading commit data...
libgsm.c Loading commit data...
libtheoraenc.c Loading commit data...
loco.c Loading commit data...
lzw.c Loading commit data...
lzw.h Loading commit data...
lzwenc.c Loading commit data...
mace.c Loading commit data...
mathops.h Loading commit data...
mdct.c Loading commit data...
mdec.c Loading commit data...
mjpeg.c Loading commit data...
mmvideo.c Loading commit data...
motion_est.c Loading commit data...
motion_est_template.c Loading commit data...
motion_test.c Loading commit data...
mp3lameaudio.c Loading commit data...
mpc.c Loading commit data...
mpcdata.h Loading commit data...
mpeg12.c Loading commit data...
mpeg12data.h Loading commit data...
mpeg4data.h Loading commit data...
mpegaudio.c Loading commit data...
mpegaudio.h Loading commit data...
mpegaudiodec.c Loading commit data...
mpegaudiodectab.h Loading commit data...
mpegaudiotab.h Loading commit data...
mpegvideo.c Loading commit data...
mpegvideo.h Loading commit data...
msmpeg4.c Loading commit data...
msmpeg4data.h Loading commit data...
msrle.c Loading commit data...
msvideo1.c Loading commit data...
nuv.c Loading commit data...
oggvorbis.c Loading commit data...
opt.c Loading commit data...
opt.h Loading commit data...
os2thread.c Loading commit data...
parser.c Loading commit data...
parser.h Loading commit data...
pcm.c Loading commit data...
png.c Loading commit data...
pnm.c Loading commit data...
pthread.c Loading commit data...
qdm2.c Loading commit data...
qdm2data.h Loading commit data...
qdrw.c Loading commit data...
qpeg.c Loading commit data...
qtrle.c Loading commit data...
ra144.c Loading commit data...
ra144.h Loading commit data...
ra288.c Loading commit data...
ra288.h Loading commit data...
rangecoder.c Loading commit data...
rangecoder.h Loading commit data...
ratecontrol.c Loading commit data...
ratecontrol.h Loading commit data...
raw.c Loading commit data...
resample.c Loading commit data...
resample2.c Loading commit data...
rl.h Loading commit data...
rle.c Loading commit data...
rle.h Loading commit data...
roqvideo.c Loading commit data...
rpza.c Loading commit data...
rtjpeg.c Loading commit data...
rtjpeg.h Loading commit data...
rv10.c Loading commit data...
sgi.h Loading commit data...
sgidec.c Loading commit data...
sgienc.c Loading commit data...
shorten.c Loading commit data...
simple_idct.c Loading commit data...
simple_idct.h Loading commit data...
smacker.c Loading commit data...
smc.c Loading commit data...
snow.c Loading commit data...
snow.h Loading commit data...
sonic.c Loading commit data...
sp5x.h Loading commit data...
svq1.c Loading commit data...
svq1_cb.h Loading commit data...
svq1_vlc.h Loading commit data...
svq3.c Loading commit data...
targa.c Loading commit data...
targaenc.c Loading commit data...
tiertexseqv.c Loading commit data...
tiff.c Loading commit data...
tiff.h Loading commit data...
tiffenc.c Loading commit data...
truemotion1.c Loading commit data...
truemotion1data.h Loading commit data...
truemotion2.c Loading commit data...
truespeech.c Loading commit data...
truespeech_data.h Loading commit data...
tscc.c Loading commit data...
tta.c Loading commit data...
ulti.c Loading commit data...
ulti_cb.h Loading commit data...
utils.c Loading commit data...
vc1.c Loading commit data...
vc1acdata.h Loading commit data...
vc1data.h Loading commit data...
vc1dsp.c Loading commit data...
vcr1.c Loading commit data...
vmdav.c Loading commit data...
vmnc.c Loading commit data...
vorbis.c Loading commit data...
vorbis.h Loading commit data...
vorbis_data.c Loading commit data...
vorbis_enc.c Loading commit data...
vorbis_enc_data.h Loading commit data...
vp3.c Loading commit data...
vp3data.h Loading commit data...
vp3dsp.c Loading commit data...
vp5.c Loading commit data...
vp56.c Loading commit data...
vp56.h Loading commit data...
vp56data.c Loading commit data...
vp56data.h Loading commit data...
vp5data.h Loading commit data...
vp6.c Loading commit data...
vp6data.h Loading commit data...
vqavideo.c Loading commit data...
w32thread.c Loading commit data...
wavpack.c Loading commit data...
wma.c Loading commit data...
wma.h Loading commit data...
wmadata.h Loading commit data...
wmadec.c Loading commit data...
wmaenc.c Loading commit data...
wmv2.c Loading commit data...
wnv1.c Loading commit data...
ws-snd1.c Loading commit data...
x264.c Loading commit data...
xan.c Loading commit data...
xiph.c Loading commit data...
xiph.h Loading commit data...
xl.c Loading commit data...
xvid_internal.h Loading commit data...
xvid_rc.c Loading commit data...
xvidff.c Loading commit data...
xvmc_render.h Loading commit data...
xvmcvideo.c Loading commit data...
zmbv.c Loading commit data...
zmbvenc.c Loading commit data...