Revision 9a354fe3

View differences:

libavformat/flvdec.c
187 187
            if(!strcmp(key, "duration")) s->duration = num_val * AV_TIME_BASE;
188 188
//            else if(!strcmp(key, "width")  && vcodec && num_val > 0) vcodec->width  = num_val;
189 189
//            else if(!strcmp(key, "height") && vcodec && num_val > 0) vcodec->height = num_val;
190
            else if(!strcmp(key, "videodatarate") && vcodec && 0 <= (int)(num_val * 1024.0))
191
                vcodec->bit_rate = num_val * 1024.0;
190 192
            else if(!strcmp(key, "audiocodecid") && acodec && 0 <= (int)num_val)
191 193
                flv_set_audio_codec(s, astream, (int)num_val << FLV_AUDIO_CODECID_OFFSET);
192 194
            else if(!strcmp(key, "videocodecid") && vcodec && 0 <= (int)num_val)

Also available in: Unified diff