static int mxf_set_audio_pts(MXFContext *mxf, AVCodecContext *codec, AVPacket *pkt)

{

    MXFTrack *track = mxf->fc->streams[pkt->stream_index]->priv_data;

    pkt->pts = track->sample_count;

    if (codec->channels <= 0 || av_get_bits_per_sample(codec->codec_id) <= 0)

        return AVERROR(EINVAL);

    track->sample_count += pkt->size / (codec->channels * av_get_bits_per_sample(codec->codec_id) / 8);

    return 0;

}

static int mxf_set_audio_pts(MXFContext *mxf, AVCodecContext *codec, AVPacket *pkt)

{

    MXFTrack *track = mxf->fc->streams[pkt->stream_index]->priv_data;

    pkt->pts = track->sample_count;

    if (codec->channels <= 0 || av_get_bits_per_sample(codec->codec_id) <= 0)

        return AVERROR(EINVAL);

    track->sample_count += pkt->size / (codec->channels * av_get_bits_per_sample(codec->codec_id) / 8);

    return 0;

}

    track->sample_count += pkt->size / (codec->channels * av_get_bits_per_sample(codec->codec_id) / 8);
static int FUNC_0(MXFContext *VAR_0, AVCodecContext *VAR_1, AVPacket *VAR_2)

{

    MXFTrack *track = VAR_0->fc->streams[VAR_2->stream_index]->priv_data;

    VAR_2->pts = track->sample_count;

    if (VAR_1->channels <= 0 || av_get_bits_per_sample(VAR_1->codec_id) <= 0)

        return AVERROR(EINVAL);

    track->sample_count += VAR_2->size / (VAR_1->channels * av_get_bits_per_sample(VAR_1->codec_id) / 8);

    return 0;

}

static int FUNC_0(MXFContext *VAR_0, AVCodecContext *VAR_1, AVPacket *VAR_2)
{ MXFTrack *track = VAR_0->fc->streams[VAR_2->stream_index]->priv_data; VAR_2->pts = track->sample_count; if (VAR_1->channels <= 0 || av_get_bits_per_sample(VAR_1->codec_id) <= 0)
return AVERROR(EINVAL); track->sample_count += VAR_2->size / (VAR_1->channels * av_get_bits_per_sample(VAR_1->codec_id) / 8); return 0; }