Chen-tao / webm

Automatically exported from code.google.com/p/webm
0 stars 0 forks source link

Changing to larger resolution by vpx_codec_enc_config_set() always fails #505

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
From libvpx 1.1.0, resolution can be changed by 
vpx_codec_enc_config_set().

I can change it to a smaller resolution, 
but cannot change it to a larger resolution.
Process dies illegally.

I checked this both Windows 7 (64bit) and Ubuntu 12.04 (64bit) with libvpx 
1.1.0.
And checked this by using APIs, not from the command line tool.

Original issue reported on code.google.com by yukoba on 19 Nov 2012 at 2:41

GoogleCodeExporter commented 9 years ago
Seems crashed at this part in encode_frame_to_data_rate() of 
vp8/encoder/onyx_if.c

            for (mb_row = 0; mb_row < cm->mb_rows+1; mb_row ++)
            {
                for (mb_col = 0; mb_col < cm->mb_cols+1; mb_col ++)
                {
                    if(tmp->mbmi.ref_frame != INTRA_FRAME)
                        cpi->lfmv[mb_col + mb_row*(cm->mode_info_stride+1)].as_int = tmp->mbmi.mv.as_int;

                    cpi->lf_ref_frame_sign_bias[mb_col + mb_row*(cm->mode_info_stride+1)] = cm->ref_frame_sign_bias[tmp->mbmi.ref_frame];
                    cpi->lf_ref_frame[mb_col + mb_row*(cm->mode_info_stride+1)] = tmp->mbmi.ref_frame;
                    tmp++;
                }
            }

Original comment by yukoba on 19 Nov 2012 at 3:20

GoogleCodeExporter commented 9 years ago
Also I cannot change to the smaller resolution if g_threads is 2.

Original comment by yukoba on 19 Nov 2012 at 3:40

GoogleCodeExporter commented 9 years ago
Sorry this bug was fixed in
http://git.chromium.org/gitweb/?p=webm/libvpx.git;a=commitdiff;h=cbc249ba00dbbaf
fc630499cd992def96a9eb6f4

Original comment by yukoba on 19 Nov 2012 at 8:05

GoogleCodeExporter commented 9 years ago

Original comment by albe...@google.com on 17 Jan 2013 at 11:29