summaryrefslogtreecommitdiffstats
path: root/libavcodec/bsf.c
Commit message (Collapse)AuthorAgeFilesLines
* avcodec/bsf: Check for packet payload when setting BSF EOF flag.Jan Sebechlebsky2017-04-221-1/+1
| | | | | | | | Set BSF EOF flag only if pkt == NULL or both data and side data are not present in packet. Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* Revert "avcodec/bsf: Forbid packet without payload in av_bsf_send_packet"James Almer2017-04-221-3/+0
| | | | | | | | | This reverts commit bfdca87ab55c7f69087d962dc47aa45c8c6436fb. Packets with no data or side data will be valid EOF signal in an upcoming merge. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/bsf: fix resource leak in av_bsf_list_parse_strSteven Liu2017-01-111-2/+4
| | | | | | | | cid: 1396268 when av_strdup(str) error, the lst need release Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* avcodec/bsf: Fix av_bsf_list_free()Michael Niedermayer2017-01-081-1/+1
| | | | | | | Negate null check Fixes CID1396248 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libavcodec/bsfs: Fix bsf option settingJan Sebechlebsky2016-08-261-1/+1
| | | | | | | | AV_OPT_SEARCH_CHILDREN flag must be passed to av_opt_set_dict() to set options for private context. Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/bsf: Add custom item name function for bsf listJan Sebechlebsky2016-08-211-1/+28
| | | | | | | | | which will construct string description of filter chain. This is done using lazy-initialization, so there is no overhead if item name is never accessed. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/bsf: Add list BSF APIJan Sebechlebsky2016-08-151-0/+278
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/bsf: Add ff_bsf_get_packet_ref() functionJan Sebechlebsky2016-08-131-0/+16
| | | | | | | | Use of this function can save unnecessary malloc operation in bitstream filter. Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/bsf: Forbid packet without payload in av_bsf_send_packetJan Sebechlebsky2016-08-131-0/+3
| | | | | Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/bsf: Set EOF flag only in pkt == NULLJan Sebechlebsky2016-08-131-1/+1
| | | | | | | Set BSF EOF flag only if pkt == NULL in av_bsf_send_packet(). Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Merge commit '33d18982fa03feb061c8f744a4f0a9175c1f63ab'Derek Buitenhuis2016-04-171-4/+4
| | | | | | | | | * commit '33d18982fa03feb061c8f744a4f0a9175c1f63ab': lavc: add a new bitstream filtering API Conversions-by: Hendrik Leppkes <h.leppkes@gmail.com> Conversions-by: Derek Buitenguis <derek.buitenhuis@gmail.com> Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* lavc: add a new bitstream filtering APIAnton Khirnov2016-03-201-0/+219
Deprecate the current bitstream filtering API.
OpenPOWER on IntegriCloud