• 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
doc Loading commit data...
libavcodec Loading commit data...
libavformat Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswscale Loading commit data...
tests Loading commit data...
vhook Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
Doxyfile Loading commit data...
INSTALL Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...
build_avopt Loading commit data...
clean-diff Loading commit data...
cmdutils.c Loading commit data...
cmdutils.h Loading commit data...
common.mak Loading commit data...
configure Loading commit data...
cws2fws.c Loading commit data...
ffinstall.nsi Loading commit data...
ffmpeg.c Loading commit data...
ffplay.c Loading commit data...
ffserver.c Loading commit data...
ffserver.h Loading commit data...
output_example.c Loading commit data...
pktdumper.c Loading commit data...
qt-faststart.c Loading commit data...
unwrap-diff Loading commit data...
version.sh Loading commit data...