diff mjpeg.c @ 5005:3aba3479d806 libavcodec

remove some unused mjpeg encoding variables (they were always set to a constant value)
author aurel
date Mon, 14 May 2007 11:53:27 +0000
parents 5c3c39298e91
children eb0ad6423405
line wrap: on
line diff
--- a/mjpeg.c	Sun May 13 23:22:05 2007 +0000
+++ b/mjpeg.c	Mon May 14 11:53:27 2007 +0000
@@ -338,11 +338,9 @@
 
     put_marker(&s->pb, SOI);
 
-    if (!s->mjpeg_data_only_frames)
-    {
     jpeg_put_comments(s);
 
-    if (s->mjpeg_write_tables) jpeg_table_header(s);
+    jpeg_table_header(s);
 
     switch(s->avctx->codec_id){
     case CODEC_ID_MJPEG:  put_marker(&s->pb, SOF0 ); break;
@@ -384,7 +382,6 @@
 #else
     put_bits(&s->pb, 8, 0); /* select matrix */
 #endif
-    }
 
     /* scan header */
     put_marker(&s->pb, SOS);