dec_avcodec: fix init_decoder always returning NULL
test_chain: test the full chain (rgb2yuv, encode, decode, yuv2rgb), dump at every step

Tested and it works!