OSDN Git Service

Allow reading of growing avi files (currently being written)
authorJoakim Plate <elupus@ecce.se>
Fri, 5 Dec 2014 03:06:50 +0000 (03:06 +0000)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Mon, 8 Dec 2014 13:29:33 +0000 (13:29 +0000)
commit90411b333d6b6bb69d8937117b9250785730dc53
tree6d247ca885fc1448b93e8e6d023c60bf996cd7c7
parent4843a9c74f77f5eb8d2b1ee648fe2ac6e2a48ec3
Allow reading of growing avi files (currently being written)

This uses the RIFF header stored size to figure out the expected AVI
file size, instead of the actual file. To work fully it requires handling
failed avio_seek() instead of assuming they always succeed.

Some fate file has been cut off and contains half a frame at the end which
previously was not output during demuxing. This frame is now output to
encoder, thus the fate diff update.

Bug-Id: 261
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
libavformat/avidec.c
tests/ref/fate/aasc
tests/ref/fate/cllc-argb
tests/ref/fate/cllc-rgb
tests/ref/fate/cllc-yuy2-noblock
tests/ref/fate/cvid-partial
tests/ref/fate/fic-avi
tests/ref/fate/truemotion1-24
tests/ref/fate/vp5
tests/ref/fate/zmbv-8bit