OSDN Git Service

avpacket: do not copy data when buf ref is available.
authorClément Bœsch <ubitux@gmail.com>
Tue, 12 Mar 2013 07:13:21 +0000 (08:13 +0100)
committerClément Bœsch <ubitux@gmail.com>
Wed, 13 Mar 2013 00:30:20 +0000 (01:30 +0100)
commit02a6b06d9ea0009f058b0f43c98f640f63f1359a
tree82f24479614103567ba1542d1790934c6adcc9d6
parentb94df21a5164c7f1591935deccc13f85d8c43717
avpacket: do not copy data when buf ref is available.

This at least fixes issues with lavf/subtitles. The behaviour of
av_dup_packet() is unchanged, only av_copy_packet() is affected.
libavcodec/avpacket.c