mirror of https://git.ffmpeg.org/ffmpeg.git
discussion in the ML thread "[PATCH] rmdec.c: merge old/new packet reading code". Over time, this code broke somewhat, e.g. seq was never actually written into (and was thus always 1, therefore the seq condition was always true), whereas it was supposed to be set to the sequence number of the video slice in case the video frame is divided over multiple RM packets (slices). The problem of this is that packets other than those containing the beginning of a video frame would be indexed as well. Secondly, flags&2 is supposed to be true for video keyframes and for these audio packets containing the start of a block. For some codecs (e.g. AAC), that is every single packet, whereas for others (e.g. cook), that is the packet containing the first of a series of scrambled packets that are to be descrambled together. Indexing any of the following would lead to incomplete and thus useless frames. Problem here is that flags would be reset to 2 to indicate that the first packet is ready to be returned, and in addition if no data was left to be returned (which is always true for the first packet), then we wouldn't actually write the index entry anyway. All in all, the idea was good and it probably worked at some point, but that is long ago. This patch should at the very least make it likely for this code to be executed again at the right times, i.e. the way it was originally intended to be used. Originally committed as revision 17993 to svn://svn.ffmpeg.org/ffmpeg/trunk |
||
---|---|---|
.. | ||
4xm.c | ||
Makefile | ||
adtsenc.c | ||
aiff.c | ||
allformats.c | ||
amr.c | ||
apc.c | ||
ape.c | ||
asf.c | ||
asf.h | ||
asfcrypt.c | ||
asfcrypt.h | ||
asfdec.c | ||
asfenc.c | ||
assdec.c | ||
assenc.c | ||
au.c | ||
audiointerleave.c | ||
audiointerleave.h | ||
avc.c | ||
avc.h | ||
avformat.h | ||
avi.h | ||
avidec.c | ||
avienc.c | ||
avio.c | ||
avio.h | ||
aviobuf.c | ||
avisynth.c | ||
avs.c | ||
bethsoftvid.c | ||
bfi.c | ||
c93.c | ||
crcenc.c | ||
cutils.c | ||
daud.c | ||
dsicin.c | ||
dv.c | ||
dv.h | ||
dvenc.c | ||
dxa.c | ||
eacdata.c | ||
electronicarts.c | ||
ffm.h | ||
ffmdec.c | ||
ffmenc.c | ||
file.c | ||
flacdec.c | ||
flacenc.c | ||
flacenc.h | ||
flic.c | ||
flv.h | ||
flvdec.c | ||
flvenc.c | ||
framecrcenc.c | ||
gif.c | ||
gopher.c | ||
gxf.c | ||
gxf.h | ||
gxfenc.c | ||
http.c | ||
id3v2.c | ||
id3v2.h | ||
idcin.c | ||
idroq.c | ||
iff.c | ||
img2.c | ||
internal.h | ||
ipmovie.c | ||
isom.c | ||
isom.h | ||
iss.c | ||
libnut.c | ||
lmlm4.c | ||
matroska.c | ||
matroska.h | ||
matroskadec.c | ||
matroskaenc.c | ||
metadata.c | ||
metadata.h | ||
metadata_compat.c | ||
mm.c | ||
mmf.c | ||
mov.c | ||
movenc.c | ||
mp3.c | ||
mpc.c | ||
mpc8.c | ||
mpeg.c | ||
mpeg.h | ||
mpegenc.c | ||
mpegts.c | ||
mpegts.h | ||
mpegtsenc.c | ||
mpjpeg.c | ||
msnwc_tcp.c | ||
mtv.c | ||
mvi.c | ||
mxf.c | ||
mxf.h | ||
mxfdec.c | ||
mxfenc.c | ||
ncdec.c | ||
network.h | ||
nsvdec.c | ||
nut.c | ||
nut.h | ||
nutdec.c | ||
nutenc.c | ||
nuv.c | ||
oggdec.c | ||
oggdec.h | ||
oggenc.c | ||
oggparseflac.c | ||
oggparseogm.c | ||
oggparsespeex.c | ||
oggparsetheora.c | ||
oggparsevorbis.c | ||
oma.c | ||
options.c | ||
os_support.c | ||
os_support.h | ||
psxstr.c | ||
pva.c | ||
qtpalette.h | ||
r3d.c | ||
raw.c | ||
raw.h | ||
rdt.c | ||
rdt.h | ||
riff.c | ||
riff.h | ||
rl2.c | ||
rm.c | ||
rm.h | ||
rmdec.c | ||
rmenc.c | ||
rpl.c | ||
rtp.c | ||
rtp.h | ||
rtp_aac.c | ||
rtp_h264.c | ||
rtp_h264.h | ||
rtp_mpv.c | ||
rtpdec.c | ||
rtpdec.h | ||
rtpenc.c | ||
rtpenc.h | ||
rtpenc_h264.c | ||
rtpproto.c | ||
rtsp.c | ||
rtsp.h | ||
rtspcodes.h | ||
sdp.c | ||
segafilm.c | ||
sierravmd.c | ||
siff.c | ||
smacker.c | ||
sol.c | ||
swf.h | ||
swfdec.c | ||
swfenc.c | ||
tcp.c | ||
thp.c | ||
tiertexseq.c | ||
timefilter.c | ||
timefilter.h | ||
tta.c | ||
txd.c | ||
udp.c | ||
utils.c | ||
vc1test.c | ||
vc1testenc.c | ||
voc.c | ||
voc.h | ||
vocdec.c | ||
vocenc.c | ||
vqf.c | ||
wav.c | ||
wc3movie.c | ||
westwood.c | ||
wv.c | ||
xa.c | ||
yuv4mpeg.c |