Andreas Rheinhardt
417554bdd6
avformat/apngenc: Add const where possible
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2 years ago
Andreas Rheinhardt
05e96e6933
avformat/apngenc: Don't modify input packet
...
It might not be writable at this point.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2 years ago
Andreas Rheinhardt
f89446eaff
avformat/apngenc: Check fcTL size
...
The remaining code relies on it having the value it should have.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2 years ago
Andreas Rheinhardt
3204572a1a
avformat/apngenc: Check for incomplete chunks
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2 years ago
Andreas Rheinhardt
1dcd0adedd
avformat: Remove unnecessary inclusions from libavcodec
...
Also improve the other headers a bit while at it.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
3 years ago
Andreas Rheinhardt
e5199eebb4
avformat/apngenc: Use UINT16_MAX instead of USHRT_MAX
...
The latter needn't be 16 bits.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
3 years ago
Andreas Rheinhardt
bc70684e74
avformat: Constify all muxer/demuxers
...
This is possible now that the next-API is gone.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years ago
Andreas Rheinhardt
ef6a9e5e31
avutil/buffer: Switch AVBuffer API to size_t
...
Announced in 14040a1d91
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years ago
James Almer
e07126f54a
avformat: use the buffer_size_t typedef where required
...
Signed-off-by: James Almer <jamrial@gmail.com>
4 years ago
Andreas Rheinhardt
c3cd6b765b
avcodec, avformat: Remove unnecessary initializations of side data size
...
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
4 years ago
Andreas Rheinhardt
26aa04991e
avformat/apngenc: Add deinit function
...
Prevents memleaks when the trailer is never written (e.g. when there was
a write error when writing the header).
Fixes ticket #8347 .
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
5 years ago
James Almer
a447b75de8
avformat: replace all uses of av_copy_packet()
...
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
James Almer
bb4b7624d9
avformat/apngenc: use av_packet_alloc()
...
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
James Almer
50e0e96f3f
avformat/apngenc: use the stream parameters extradata if available
...
Fixes remuxing apng streams coming from the apng demuxer, which sends extradata
during init.
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
Andreas Cadhalpun
940b8908b9
apng: use side data to pass extradata to muxer
...
This fixes creating apng files, which is broken since commit
5ef1959080
.
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
8 years ago
Hendrik Leppkes
c2f861ca42
Replace remaining occurances of av_free_packet with av_packet_unref
9 years ago
Donny Yang
99b0cadd13
apng: Fix wrong default final frame delay in muxer
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Carl Eugen Hoyos
8ad04d24c8
lavf/apngenc: Fix png remuxing by using default extension apng.
10 years ago
Carl Eugen Hoyos
79c11388e1
lavf/apngenc: Do not print a warning in the normal use-case.
10 years ago
Donny Yang
80be7daaa8
apng: Add a basic APNG muxer
...
Additionally, update some documentation with support for APNG
Signed-off-by: Donny Yang <work@kota.moe>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago