int video_stream, ret;
AVStream *video = NULL;
AVCodecContext *decoder_ctx = NULL;
- AVCodec *decoder = NULL;
+ const AVCodec *decoder = NULL;
AVPacket packet;
enum AVHWDeviceType type;
int i;
}
/* open the file to dump raw data */
- output_file = fopen(argv[3], "w+");
+ output_file = fopen(argv[3], "w+b");
/* actual decoding and dump the raw data */
while (ret >= 0) {