Index: libs/libmythtv/avformatdecoder.cpp
===================================================================
--- libs/libmythtv/avformatdecoder.cpp	(revision 7368)
+++ libs/libmythtv/avformatdecoder.cpp	(working copy)
@@ -576,8 +593,11 @@
         return -1;
     }
 
-    int ret = av_find_stream_info(ic);
-    if (ret < 0)
+    if (!ic->packet_buffer)
+        err = -1;
+    else
+        err = av_find_stream_info(ic);
+    if (err < 0)
     {
         VERBOSE(VB_IMPORTANT, QString("AvFormatDecoder: could not find codec "
                                       "parameters for \"%1\".").arg(filename));
@@ -601,9 +629,9 @@
     bitrate = 0;
     fps = 0;
 
-    ret = ScanStreams(novideo);
-    if (-1 == ret)
-        return ret;
+    err = ScanStreams(novideo);
+    if (-1 == err)
+        return err;
 
     autoSelectAudioTrack();
     autoSelectSubtitleTrack();
