Thanks, that's a good point to see the error code. I will give it a try. I just thought failure to open will result in a negative number. From the list of error codes, https://www.ffmpeg.org/doxygen/2.3/group__lavu__error.html, I don't see a whole bunch related to different I/O errors, though.
Best, Cen On Fri, Feb 13, 2015 at 10:26 AM, Nicolas George <geo...@nsup.org> wrote: > Le quintidi 25 pluviôse, an CCXXIII, Cen-bi Liu a écrit : > > if ((error = avio_open(&output_io_context, filename, > > AVIO_FLAG_WRITE)) < 0) { > > __android_log_print(ANDROID_LOG_ERROR, "encoder","couldn't open > > output file"); > > exit(1);} > > Why are you not doing anything with the error code? > > Regards, > > -- > Nicolas George > > _______________________________________________ > Libav-user mailing list > Libav-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/libav-user > > -- =============================== Cen Bi Liu
_______________________________________________ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user