Changed API
Using av_read_frame() instead of incorrect av_read_packet()