* Add the 'flags' field to the list of codec fields passed from ffserver to
authorPhilip Gladstone <philipjsg@users.sourceforge.net>
Thu, 9 May 2002 12:37:44 +0000 (12:37 +0000)
committerPhilip Gladstone <philipjsg@users.sourceforge.net>
Thu, 9 May 2002 12:37:44 +0000 (12:37 +0000)
  ffmpeg. This gives the VideoHighQuality patch a fighting chance.

Originally committed as revision 479 to svn://svn.ffmpeg.org/ffmpeg/trunk

libav/ffm.c

index 04010f9..3f444c2 100644 (file)
@@ -153,6 +153,7 @@ static int ffm_write_header(AVFormatContext *s)
         put_be32(pb, codec->codec_id);
         put_byte(pb, codec->codec_type);
         put_be32(pb, codec->bit_rate);
+        put_be32(pb, codec->flags);
         /* specific info */
         switch(codec->codec_type) {
         case CODEC_TYPE_VIDEO:
@@ -376,6 +377,7 @@ static int ffm_read_header(AVFormatContext *s, AVFormatParameters *ap)
         st->codec.codec_id = get_be32(pb);
         st->codec.codec_type = get_byte(pb); /* codec_type */
         codec->bit_rate = get_be32(pb);
+        codec->flags = get_be32(pb);
         /* specific info */
         switch(codec->codec_type) {
         case CODEC_TYPE_VIDEO: