static int mov_read_pasp(MOVContext *c, ByteIOContext *pb, MOVAtom atom)

{

    const int num = get_be32(pb);

    const int den = get_be32(pb);

    AVStream * const st = c->fc->streams[c->fc->nb_streams-1];

    if (den != 0) {

        if ((st->sample_aspect_ratio.den != 1 || st->sample_aspect_ratio.num) && // default

            (den != st->sample_aspect_ratio.den || num != st->sample_aspect_ratio.num))

            av_log(c->fc, AV_LOG_WARNING,

                   "sample aspect ratio already set to %d:%d, overriding by 'pasp' atom\n",

                   st->sample_aspect_ratio.num, st->sample_aspect_ratio.den);

        st->sample_aspect_ratio.num = num;

        st->sample_aspect_ratio.den = den;

    }

    return 0;

}

static int mov_read_pasp(MOVContext *c, ByteIOContext *pb, MOVAtom atom)

{

    const int num = get_be32(pb);

    const int den = get_be32(pb);

    AVStream * const st = c->fc->streams[c->fc->nb_streams-1];

    if (den != 0) {

        if ((st->sample_aspect_ratio.den != 1 || st->sample_aspect_ratio.num) && 

            (den != st->sample_aspect_ratio.den || num != st->sample_aspect_ratio.num))

            av_log(c->fc, AV_LOG_WARNING,

                   "sample aspect ratio already set to %d:%d, overriding by 'pasp' atom\n",

                   st->sample_aspect_ratio.num, st->sample_aspect_ratio.den);

        st->sample_aspect_ratio.num = num;

        st->sample_aspect_ratio.den = den;

    }

    return 0;

}

static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOVAtom VAR_2)

{

    const int VAR_3 = get_be32(VAR_1);

    const int VAR_4 = get_be32(VAR_1);

    AVStream * const st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1];

    if (VAR_4 != 0) {

        if ((st->sample_aspect_ratio.VAR_4 != 1 || st->sample_aspect_ratio.VAR_3) && 

            (VAR_4 != st->sample_aspect_ratio.VAR_4 || VAR_3 != st->sample_aspect_ratio.VAR_3))

            av_log(VAR_0->fc, AV_LOG_WARNING,

                   "sample aspect ratio already set to %d:%d, overriding by 'pasp' VAR_2\n",

                   st->sample_aspect_ratio.VAR_3, st->sample_aspect_ratio.VAR_4);

        st->sample_aspect_ratio.VAR_3 = VAR_3;

        st->sample_aspect_ratio.VAR_4 = VAR_4;

    }

    return 0;

}

static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOVAtom VAR_2)
{ const int VAR_3 = get_be32(VAR_1); const int VAR_4 = get_be32(VAR_1); AVStream * const st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1]; if (VAR_4 != 0) { if ((st->sample_aspect_ratio.VAR_4 != 1 || st->sample_aspect_ratio.VAR_3) &&
(VAR_4 != st->sample_aspect_ratio.VAR_4 || VAR_3 != st->sample_aspect_ratio.VAR_3))
av_log(VAR_0->fc, AV_LOG_WARNING,
"sample aspect ratio already set to %d:%d, overriding by 'pasp' VAR_2\n",
st->sample_aspect_ratio.VAR_3, st->sample_aspect_ratio.VAR_4); st->sample_aspect_ratio.VAR_3 = VAR_3; st->sample_aspect_ratio.VAR_4 = VAR_4; } return 0; }