| @@ -536,7 +536,7 @@ static void h263_encode_block(MPVEncContext *const s, int16_t block[], int n) · 535 unmodified lines |
| 536 | code = get_rl_index(rl, last, run, level); | 536 | code = get_rl_index(rl, last, run, level); |
| 537 | put_bits(&s->pb, rl->table_vlc[code][1], rl->table_vlc[code][0]); | 537 | put_bits(&s->pb, rl->table_vlc[code][1], rl->table_vlc[code][0]); |
| 538 | if (code == rl->n) { | 538 | if (code == rl->n) { |
| 539 | if (!CONFIG_FLV_ENCODER || s->c.h263_flv <= 1) { | 539 | if (!CONFIG_FLV_ENCODER || s->c.codec_id != AV_CODEC_ID_FLV1) { |
| 540 | put_bits(&s->pb, 1, last); | 540 | put_bits(&s->pb, 1, last); |
| 541 | put_bits(&s->pb, 6, run); | 541 | put_bits(&s->pb, 6, run); |
| 542 | | 542 | |
| @@ -861,13 +861,9 @@ av_cold void ff_h263_encode_init(MPVMainEncContext *const m) · 318 unmodified lines |
| 861 | #if CONFIG_FLV_ENCODER | 861 | #if CONFIG_FLV_ENCODER |
| 862 | case AV_CODEC_ID_FLV1: | 862 | case AV_CODEC_ID_FLV1: |
| 863 | m->encode_picture_header = ff_flv_encode_picture_header; | 863 | m->encode_picture_header = ff_flv_encode_picture_header; |
| 864 | if (s->c.h263_flv > 1) { | 864 | /* format = 1; 11-bit codes */ |
| 865 | s->min_qcoeff= -1023; | 865 | s->min_qcoeff = -1023; |
| 866 | s->max_qcoeff= 1023; | 866 | s->max_qcoeff = 1023; |
| 867 | } else { | | |
| 868 | s->min_qcoeff= -127; | | |
| 869 | s->max_qcoeff= 127; | | |
| 870 | } | | |
| 871 | break; | 867 | break; |
| 872 | #endif | 868 | #endif |
| 873 | default: //nothing needed - default table already set in mpegvideo.c | 869 | default: //nothing needed - default table already set in mpegvideo.c |