diff options
author | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2016-04-12 17:23:38 +0100 |
---|---|---|
committer | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2016-04-12 17:24:07 +0100 |
commit | e8373143e11827b668495ff3323c3abedb3dc9da (patch) | |
tree | bf5f8d1171a55ac78e31852e716383b38ee1aa6e /ffprobe.c | |
parent | 9cb1ed5735ec03f6331f9777e25aa2f736a9d60f (diff) | |
download | ffmpeg-e8373143e11827b668495ff3323c3abedb3dc9da.tar.gz |
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 <derek.buitenhuis@gmail.com>
Diffstat (limited to 'ffprobe.c')
-rw-r--r-- | ffprobe.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1956,7 +1956,7 @@ static av_always_inline int process_frame(WriterContext *w, AVSubtitle sub; int ret = 0, got_frame = 0; - if (dec_ctx->codec) { + if (dec_ctx && dec_ctx->codec) { switch (par->codec_type) { case AVMEDIA_TYPE_VIDEO: ret = avcodec_decode_video2(dec_ctx, frame, &got_frame, pkt); |