]> granicus.if.org Git - handbrake/commit
decavcodec: fix crash in decavcodecvInfo
authorJohn Stebbins <jstebbins.hb@gmail.com>
Tue, 24 Jan 2017 17:59:58 +0000 (10:59 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Tue, 24 Jan 2017 18:10:24 +0000 (11:10 -0700)
commit29d07075d0ceed9c373a42969596e6a743b67a50
treebd10e4692297eb6b694296506ecf8715788d61c3
parentc69b9f62fe211fec80dbca1c706232453ce8bf42
decavcodec: fix crash in decavcodecvInfo

If avcodec_open fails, pv->context->codec is NULL, but work->info may
still be called by scan.

(cherry picked from commit 4425691a0fd57b30360d39df3bdeebb9cc9b577f)
libhb/decavcodec.c