Zhao Zhili
d1a44f261a
examples/decode_video: flush parser to fix missing frame
...
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
3 years ago
Carl Eugen Hoyos
68f637b6f9
doc/examples: Always open files as "binary", not "text".
...
Fixes ticket #8638 .
4 years ago
Steven Liu
6d1009cb9d
doc/examples/decode_video: add input file format information for usage
...
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
5 years ago
Mark Thompson
10bcc41bb4
examples: Don't call deprecated functions which don't do anything
7 years ago
Michael Niedermayer
23edd41a0d
doc/examples/decode_video: Fix format string vulnerability
...
Fixes: CID1404843
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Anton Khirnov
c7ab0eb305
examples/decode_video: allocate the packet dynamically
...
AVPackets on stack are discouraged.
8 years ago
Anton Khirnov
728ea23cce
examples/decode_video: switch to the new decoding API
8 years ago
Anton Khirnov
f78d360bba
examples/decode_video: use a parser for splitting the input
...
Do not rely on the decoder handling this, as it's not guaranteed to
work.
8 years ago
Anton Khirnov
636515c324
examples/decode_video: remove a stray unrelated comment
8 years ago
Anton Khirnov
8191f960a6
examples/decode_video: constify the AVCodec instance
8 years ago
Anton Khirnov
7b1f03477f
examples/avcodec: split the remaining two examples into separate files
8 years ago
Anton Khirnov
f5df897c4b
examples/avcodec: split audio decoding into a separate example
...
The four examples (audio/video encoding/decoding) are completely
independent so it makes little sense to have them all in one file.
8 years ago
Anton Khirnov
40aaa8dadf
examples/avcodec: split audio encoding into a separate example
...
The four examples (audio/video encoding/decoding) are completely
independent so it makes little sense to have them all in one file.
8 years ago
Vittorio Giovara
9833a406d3
examples: Properly free AVCodecContext
9 years ago
Vittorio Giovara
41ed7ab45f
cosmetics: Fix spelling mistakes
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
9 years ago
Luca Barbato
ce70f28a17
avpacket: Replace av_free_packet with av_packet_unref
...
`av_packet_unref` matches the AVFrame ref-counted API and can be used as
a drop in replacement.
Deprecate `av_free_packet`.
9 years ago
Vittorio Giovara
059a934806
lavc: Consistently prefix input buffer defines
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
10 years ago
Vittorio Giovara
def97856de
lavc: AV-prefix all codec capabilities
...
Express bitfields more simply.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
10 years ago
Vittorio Giovara
7c6eb0a1b7
lavc: AV-prefix all codec flags
...
Convert doxygen to multiline and express bitfields more simply.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
10 years ago
Stefano Sabatini
bf411fffd4
examples: rename avcodec.c to decoding_encoding.c
...
Restore the old name, which was more meaningful and consistent with the
names of the other examples.
11 years ago
Anshul Maheshwari
6d25e90262
doc/examples/avcodec: information regarding gop_size ignored if frame->pic-type is AV_PICTURE_TYPE_I
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Diego Biurrun
b339182eba
Move all example programs to doc/examples
...
Also drop support for building examples in library directories.
11 years ago
Anton Khirnov
48d17ee6dc
api-example: remove an unneeded call to avcodec_get_frame_defaults().
...
avcodec_decode_audio4() resets the frame itself.
11 years ago
Anton Khirnov
eb891b3114
Replace all uses of avcodec_free_frame with av_frame_free().
11 years ago
Anton Khirnov
5b9c3b4505
Replace all instances of avcodec_alloc_frame() with av_frame_alloc().
11 years ago
Peter Meerwald
dfcbe8cbd7
doc: Fix best_nb_channells typo
...
Signed-off-by: Peter Meerwald <p.meerwald@bct-electronic.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years ago
Justin Ruggles
a903f8f087
Include libavutil/channel_layout.h instead of libavutil/audioconvert.h
...
Also reorder some other #include when applicable.
12 years ago
Anton Khirnov
716d413c13
Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormat
12 years ago
Anton Khirnov
11d1ca4b2c
Use avcodec_free_frame() to free AVFrames.
12 years ago
Martin Storsjö
1d9c2dc89a
Don't include common.h from avutil.h
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Anton Khirnov
661454aa28
api-example: use new video encoding API.
13 years ago
Anton Khirnov
5702c8670e
api-example: update to new audio encoding API.
13 years ago
Anton Khirnov
36ef5369ee
Replace all CODEC_ID_* with AV_CODEC_ID_*
13 years ago
Luca Barbato
aac63cef20
examples: unbreak compilation
...
Update api so it will compile again.
13 years ago
Justin Ruggles
0bafe04917
api-example: update to use avcodec_decode_audio4()
13 years ago
Anton Khirnov
71a861cf40
lavc: make avcodec_alloc_context3 officially public.
...
Deprecate avcodec_alloc_context/2.
14 years ago
Reinhard Tartler
d7537a6fce
doxygen: Include libavcodec and libavformat examples into the documentation
14 years ago
Stefano Sabatini
9362b50941
examples: move API examples to a dedicated dir in doc
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Martin Storsjö
8ac942d8f5
Cosmetics: reindent after the previous commit
...
Originally committed as revision 23324 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
11f6181af1
api-example: Try to avoid decoding incomplete frames
...
Use a larger input audio buffer, refill it when it has less than 4 KB data
left.
Originally committed as revision 23323 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
ba87f0801d
Remove explicit filename from Doxygen @file commands.
...
Passing an explicit filename to this command is only necessary if the
documentation in the @file block refers to a file different from the
one the block resides in.
Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Jai Menon
1c38da85e6
Allow building api-example from outside of libavcodec and also
...
make it more consistent with libavformat/output-example.
Originally committed as revision 20176 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Thilo Borgmann
4f313925ec
Use the new avcodec_decode_* API.
...
Patch by Thilo Borgmann name.surname AT googlemail.com.
Originally committed as revision 18409 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
504ffed19f
Mark non-exported functions in test and example programs as static.
...
Originally committed as revision 18259 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
7c17abaf9d
Rename apiexample.c --> api-example.c to be consistent with other example files.
...
Originally committed as revision 18216 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Robert Swain
29e455081f
Update apiexample.c to use the newer avcodec_decode_audio2() API. This also
...
fixes compilation.
Originally committed as revision 18176 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
bad5537e2c
Use full internal pathname in doxygen @file directives.
...
Otherwise doxygen complains about ambiguous filenames when files exist
under the same name in different subdirectories.
Originally committed as revision 16912 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
14660b0814
Use M_PI from libavutil/mathematics.h instead of defining PI ourselves
...
in libavcodec/apiexample.c.
Originally committed as revision 15520 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Carl Eugen Hoyos
c9823f0577
Improve understanding ofavcodec_find_decoder()
...
patch by Carl Eugen Hoyos: ! cehoyos ag or at !
Originally committed as revision 9301 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago