summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2013-09-07 18:51:14 +0000
committerjstebbins <[email protected]>2013-09-07 18:51:14 +0000
commit676d0003ab7f955b6d6521195eb05d7917318909 (patch)
treeb05687293797684d03867f863942c2f7ed61ee72 /libhb
parent0c5a1f22cce32136e76c471c9dd6716e20c81f91 (diff)
libhb: unbreak probe_dts_profile
When doing codec probes, the title hasn't been set yet. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5776 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r--libhb/decavcodec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/decavcodec.c b/libhb/decavcodec.c
index d82dbd049..2d7548d56 100644
--- a/libhb/decavcodec.c
+++ b/libhb/decavcodec.c
@@ -511,7 +511,7 @@ static int decavcodecaBSInfo( hb_work_object_t *w, const hb_buffer_t *buf,
AVCodecContext *context = avcodec_alloc_context3(codec);
AVCodecParserContext *parser = NULL;
- if (w->title->opaque_priv != NULL)
+ if (w->title && w->title->opaque_priv != NULL)
{
AVFormatContext *ic = (AVFormatContext*)w->title->opaque_priv;
avcodec_copy_context(context, ic->streams[w->audio->id]->codec);