0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00
mpv/common
wm4 758f8f7bd4 demux: always use AVPacket
This is a simplification, because it lets us use the AVPacket
functions, instead of handling the details manually.

It also allows the libavcodec rawvideo decoder to use reference
counting, so it doesn't have to memcpy() the full image data. The change
in av_common.c enables this.

This change is somewhat risky, because we rely on the following AVPacket
implementation details and assumptions:
- av_packet_ref() doesn't access the input padding, and just copies the
  data. By the API, AVPacket is always padded, and we violate this. The
  lavc implementation would have to go out of its way to make this a
  real problem, though.
- We hope that the way we make the AVPacket refcountable in av_common.c
  is actually supported API-usage. It's hard to tell whether it is.

Of course we still use our own "old" demux_packet struct, just so that
libav* API usage is somewhat isolated.
2014-08-25 00:46:26 +02:00
..
av_common.c demux: always use AVPacket 2014-08-25 00:46:26 +02:00
av_common.h Improve setting AVOptions 2014-08-02 03:12:33 +02:00
av_log.c av_log: add tons of warnings against mismatched ffmpeg/libav libraries 2014-02-10 23:28:10 +01:00
av_log.h av_log: mp_msg conversion 2013-12-21 21:43:16 +01:00
codecs.c msg: rename mp_msg_log -> mp_msg 2013-12-21 22:13:04 +01:00
codecs.h codecs: mp_msg conversion 2013-12-21 20:50:12 +01:00
common.c common: change mp_snprintf_append semantics 2014-05-05 23:56:12 +02:00
common.h common: change MP_NOPTS_VALUE definition 2014-05-10 10:44:16 +02:00
encode_lavc.c encode: deal with codec->time_base deprecation 2014-07-22 23:04:12 +02:00
encode_lavc.h encode: make option struct local 2014-06-11 02:05:07 +02:00
encode.h encode: make option struct local 2014-06-11 02:05:07 +02:00
global.h stream: remove interrupt callback global variables 2014-04-25 19:12:24 +02:00
msg_control.h Add more const 2014-06-11 00:39:14 +02:00
msg.c win32: emulate some ANSI terminal escape codes 2014-08-21 22:45:58 +02:00
msg.h options: remove deprecated --identify 2014-05-04 02:46:11 +02:00
playlist.c command: append entries to the end of the playlist with loadlist append 2014-07-25 14:32:34 +02:00
playlist.h command: append entries to the end of the playlist with loadlist append 2014-07-25 14:32:34 +02:00
tags.c tags: add copy function 2014-07-16 22:40:12 +02:00
tags.h tags: add copy function 2014-07-16 22:40:12 +02:00
version.c Add more const 2014-06-11 00:39:14 +02:00