summaryrefslogtreecommitdiff
path: root/libavformat/avc.h
Commit message (Collapse)AuthorAge
* avformat/avc, mxfenc: Avoid allocation of H264 SPS structure, fix memleakAndreas Rheinhardt2020-06-26
| | | | | | | | | | | | | | | | | | | | | | Up until now, ff_avc_decode_sps would parse a SPS and return some properties from it in a freshly allocated structure. Yet said structure is very small and completely internal to libavformat, so there is no reason to use the heap for it. This commit therefore changes the function to return an int and to modify a caller-provided structure. This will also allow ff_avc_decode_sps to return better error codes in the future. It also fixes a memleak in mxfenc: If a packet contained multiple SPS, only the SPS structure belonging to the last SPS would be freed, the other ones would leak when the pointer is overwritten to point to the new SPS structure. Of course, without allocations there are no leaks. This is Coverity issue #1445194. Furthermore, the SPS structure has been renamed from H264SequenceParameterSet to H264SPS in order to avoid overlong lines. Reviewed-by: Tomas Härdin <tjoppen@acc.umu.se> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* avformat/avc: write the missing bits in the AVC Decoder Configuration BoxJames Almer2019-11-28
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/mxfenc: support XAVC long gopBaptiste Coudurier2019-05-20
|
* Merge commit 'a2efbecc4ed12d287cf29856418c4da4a7648d95'Michael Niedermayer2014-09-25
|\ | | | | | | | | | | | | * commit 'a2efbecc4ed12d287cf29856418c4da4a7648d95': libavformat: Move avc mp4 startcode parsing to a shared file Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * libavformat: Move avc mp4 startcode parsing to a shared fileMartin Storsjö2014-09-24
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-03-25
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: avc: Add a function for converting mp4 style extradata to annex b pthread: free progress if buffer allocation failed. lavc/avconv: support changing frame sizes in codecs with frame mt. libavformat: Document who sets the AVStream.id field utvideo: mark output picture as keyframe. sunrast: Add support for negative linesize. vp8: fix update_lf_deltas in libavcodec/vp8.c ralf: read Huffman code lengths without GetBitContext Conflicts: ffmpeg.c libavcodec/sunrastenc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avc: Add a function for converting mp4 style extradata to annex bMartin Storsjö2012-03-24
| | | | | | | | | | | | | | Make movenc use this function instead of the current custom conversion function. Signed-off-by: Martin Storsjö <martin@martin.st>
| * Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | | | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
| * avio: rename ByteIOContext to AVIOContext.Anton Khirnov2011-02-20
| | | | | | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* | avio: rename ByteIOContext to AVIOContext.Anton Khirnov2011-02-20
|/ | | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> (cherry picked from commit ae628ec1fd7f54c102bf9e667a3edd404b9b9128)
* 10l, fix prototypeBaptiste Coudurier2009-01-16
| | | | Originally committed as revision 16625 to svn://svn.ffmpeg.org/ffmpeg/trunk
* export ff_avc_parse_nal_units_bufBaptiste Coudurier2009-01-16
| | | | Originally committed as revision 16624 to svn://svn.ffmpeg.org/ffmpeg/trunk
* return size written in ff_avc_parse_nal_unitsBaptiste Coudurier2009-01-16
| | | | Originally committed as revision 16622 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Do not reallocate AVPacket's data when muxing a packetLuca Abeni2009-01-15
| | | | Originally committed as revision 16616 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Globally rename the header inclusion guard names.Stefano Sabatini2008-08-31
| | | | | | | | | Consistently apply this rule: the guard name is obtained from the filename by stripping the leading "lib", converting '/' and '.' to '_' and uppercasing the resulting name. Guard names in the root directory have to be prefixed by "FFMPEG_". Originally committed as revision 15120 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add missing FFMPEG_ prefix to multiple inclusion guard.Diego Biurrun2008-08-30
| | | | Originally committed as revision 15047 to svn://svn.ffmpeg.org/ffmpeg/trunk
* constMichael Niedermayer2008-02-19
| | | | Originally committed as revision 12145 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make avc_find_startcode non-static, so that it can be used from otherLuca Abeni2008-01-15
| | | | | | files (and add the ff_ prefix, to avoid polluting the namespace) Originally committed as revision 11532 to svn://svn.ffmpeg.org/ffmpeg/trunk
* add a ff_ prefix to newly exported functions from avc.cAurelien Jacobs2008-01-11
| | | | Originally committed as revision 11511 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move isom_write_avcc() and related functions into a separate file.Aurelien Jacobs2008-01-11
Originally committed as revision 11498 to svn://svn.ffmpeg.org/ffmpeg/trunk