* add support for liba52
[ffmpeg.git] / ffserver.c
index 152dd37..4704c51 100644 (file)
@@ -882,7 +882,7 @@ static int http_prepare_data(HTTPContext *c)
                     }
                 } else {
                send_it:
                     }
                 } else {
                send_it:
-                    if (av_write_packet(&c->fmt_ctx, &pkt))
+                    if (av_write_packet(&c->fmt_ctx, &pkt, 0))
                        c->state = HTTPSTATE_SEND_DATA_TRAILER;
                 }
                 
                        c->state = HTTPSTATE_SEND_DATA_TRAILER;
                 }
                 
@@ -1179,6 +1179,13 @@ void add_codec(FFStream *stream, AVCodecContext *av)
             av->width = 160;
             av->height = 128;
         }
             av->width = 160;
             av->height = 128;
         }
+        av->bit_rate_tolerance= 128000;
+        av->qmin= 5;
+        av->qmax= 31;
+        av->qcompress= 0.5;
+        av->qblur= 0.5;
+        av->max_qdiff= 3;
+
         break;
     }
 
         break;
     }