Skip to content

Commit e837314

Browse files
committed
ffprobe: Don't try and decode things that have no dec_ctx
The last instance of a missing dec_ctx check from the merge. Signed-off-by: Derek Buitenhuis <[email protected]>
1 parent 9cb1ed5 commit e837314

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ffprobe.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1956,7 +1956,7 @@ static av_always_inline int process_frame(WriterContext *w,
19561956
AVSubtitle sub;
19571957
int ret = 0, got_frame = 0;
19581958

1959-
if (dec_ctx->codec) {
1959+
if (dec_ctx && dec_ctx->codec) {
19601960
switch (par->codec_type) {
19611961
case AVMEDIA_TYPE_VIDEO:
19621962
ret = avcodec_decode_video2(dec_ctx, frame, &got_frame, pkt);

0 commit comments

Comments
 (0)