ac-ffmpeg 0.19.0

Simple and safe Rust interface for FFmpeg libraries.
Documentation
#include <libavutil/common.h>
#include <libavutil/error.h>

int ffw_error_again = AVERROR(EAGAIN);
int ffw_error_eof = AVERROR_EOF;
int ffw_error_would_block = AVERROR(EWOULDBLOCK);
int ffw_error_unknown = AVERROR_UNKNOWN;

int ffw_error_from_posix(int error) {
    return AVERROR(error);
}

int ffw_error_to_posix(int error) {
    return AVUNERROR(error);
}

void ffw_error_get_error_string(int error, char* buffer, size_t buffer_size) {
    av_strerror(error, buffer, buffer_size);

    // make sure that the string ends with null character (ffmpeg does not
    // guarantee that)
    buffer[buffer_size - 1] = 0;
}