about summary refs log tree commit diff
path: root/converter/ppm/ppmtompeg
diff options
context:
space:
mode:
Diffstat (limited to 'converter/ppm/ppmtompeg')
-rw-r--r--converter/ppm/ppmtompeg/combine.c1
-rw-r--r--converter/ppm/ppmtompeg/mpeg.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/converter/ppm/ppmtompeg/combine.c b/converter/ppm/ppmtompeg/combine.c
index 341bb5dc..52cc646d 100644
--- a/converter/ppm/ppmtompeg/combine.c
+++ b/converter/ppm/ppmtompeg/combine.c
@@ -110,7 +110,6 @@ appendSpecifiedGopFiles(struct inputSource * const inputSourceP,
              nAttempts < READ_ATTEMPTS && !ifP;
              ++nAttempts) {
 
-            FILE * ifP;
             ifP = fopen(fileName, "rb");
             if (ifP == NULL) {
                 pm_message("ERROR:  Couldn't read file '%s'.  retry %u", 
diff --git a/converter/ppm/ppmtompeg/mpeg.c b/converter/ppm/ppmtompeg/mpeg.c
index a934ed09..fafbb97a 100644
--- a/converter/ppm/ppmtompeg/mpeg.c
+++ b/converter/ppm/ppmtompeg/mpeg.c
@@ -1150,7 +1150,7 @@ GenMPEGStream(struct inputSource * const inputSourceP,
     if (showBitRatePerFrame)
         OpenBitRateFile();  /* May modify showBitRatePerFrame */
 
-    if (context == CONTEXT_WHOLESTREAM)
+    if (context == CONTEXT_WHOLESTREAM || context == CONTEXT_GOP)
         bbP = Bitio_New(ofP);
     else
         bbP = NULL;