X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=doc%2Fexamples%2Fhw_decode.c;h=096a229c0d2a9934b17ed4641cbbdd91ef5e042d;hb=46dac8cf3d250184ab4247809bc03f60e14f4c0c;hp=f3286f472dbc96b7d16aa245a00d2ec214536ea7;hpb=f32d2939555706365ad1d39aadd5ee7ce1d9fa4f;p=ffmpeg diff --git a/doc/examples/hw_decode.c b/doc/examples/hw_decode.c index f3286f472db..096a229c0d2 100644 --- a/doc/examples/hw_decode.c +++ b/doc/examples/hw_decode.c @@ -152,7 +152,7 @@ int main(int argc, char *argv[]) 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; @@ -223,7 +223,7 @@ int main(int argc, char *argv[]) } /* 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) {