Added test for libavcodec/avpacket.c