avformat/utils: free AVStream.codec properly in free_stream()