Changeset 24fee953 in ffmpeg
- Timestamp:
-
Oct 4, 2013, 6:25:07 AM
(11 years ago)
- Author:
- Martin Storsjö <martin@martin.st>
- Branches:
- master
- Children:
- 8921e32f, b8e44118
- Parents:
- 72540e51
- git-author:
- Martin Storsjö <martin@martin.st> (10/03/13 10:29:37)
- git-committer:
- Martin Storsjö <martin@martin.st> (10/04/13 06:25:07)
- Message:
-
rtmpproto: Move the flv header/trailer addition to append_flv_data
update_offset is also called from handle_metadata, where the
packet header sizes is already included in the size.
Previously this lead to flv_data/flv_size including 15 uninitialized
bytes at the end after each call to handle_metadata, making the
flv demuxer lose sync with the stream.
Also remove leftover copying in handle_metadata. This is a leftover
from the refactoring in 5840473. (Previously this final mempcy was
the one that copied all the packets at once, while this is done
within the loop right now.) After making sure flv_size is set to
the right size, this write was out of bounds.
Signed-off-by: Martin Storsjö <martin@martin.st>
-
(No files)
-