History

libmpcodecs/vf_uspp: check avcodec_open() return code

Fixes CID1135747

michael committed 12 years ago

Commit 04e140d1 parent e0877aa1 file · +2 −1Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/libmpcodecs/vf_uspp.c+2−1
@@ -241,7 +241,8 @@ static int config(struct vf_instance *vf, · 240 unmodified lines
241 avctx_enc->strict_std_compliance = FF_COMPLIANCE_EXPERIMENTAL;241 avctx_enc->strict_std_compliance = FF_COMPLIANCE_EXPERIMENTAL;
242 avctx_enc->global_quality= 123;242 avctx_enc->global_quality= 123;
243 av_dict_set(&opts, "no_bitstream", "1", 0);243 av_dict_set(&opts, "no_bitstream", "1", 0);
244 avcodec_open2(avctx_enc, enc, &opts);244 if (avcodec_open2(avctx_enc, enc, &opts) < 0)
245 return 0;
245 av_dict_free(&opts);246 av_dict_free(&opts);
246 assert(avctx_enc->codec);247 assert(avctx_enc->codec);
247 }248 }

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