History

fftools/cmdutils: add error handling to filter_codec_opts()

Anton Khirnov committed 3 years ago

Commit 87f03331 parent 6b8cf256 files · +56 −23Browse files

Showing the changes to fftools/cmdutils.h (1 of 6 files). Show all

Unified · Split

fftools/cmdutils.h+5−3
@@ -333,10 +333,12 @@ int check_stream_specifier(AVFormatContext *s, AVStream *st, const char *spec); · 332 unmodified lines
333 * @param st A stream from s for which the options should be filtered.333 * @param st A stream from s for which the options should be filtered.
334 * @param codec The particular codec for which the options should be filtered.334 * @param codec The particular codec for which the options should be filtered.
335 * If null, the default one is looked up according to the codec id.335 * If null, the default one is looked up according to the codec id.
336 * @return a pointer to the created dictionary336 * @param dst a pointer to the created dictionary
337 * @return a non-negative number on success, a negative error code on failure
337 */338 */
338AVDictionary *filter_codec_opts(const AVDictionary *opts, enum AVCodecID codec_id,339int filter_codec_opts(const AVDictionary *opts, enum AVCodecID codec_id,
339 AVFormatContext *s, AVStream *st, const AVCodec *codec);340 AVFormatContext *s, AVStream *st, const AVCodec *codec,
341 AVDictionary **dst);
340 342
341/**343/**
342 * Setup AVCodecContext options for avformat_find_stream_info().344 * Setup AVCodecContext options for avformat_find_stream_info().

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t