picture_scaled = avcodec_alloc_frame();
if (picture_scaled == NULL) {
fprintf(stderr, "cannot allocate the scaled picture!\n");
picture_scaled = avcodec_alloc_frame();
if (picture_scaled == NULL) {
fprintf(stderr, "cannot allocate the scaled picture!\n");