int ff_replaygain_export_raw(AVStream *st, int32_t tg, uint32_t tp,

                             int32_t ag, uint32_t ap)

{

    AVReplayGain *replaygain;



    if (tg == INT32_MIN && ag == INT32_MIN)

        return 0;



    replaygain = (AVReplayGain*)ff_stream_new_side_data(st, AV_PKT_DATA_REPLAYGAIN,

                                                        sizeof(*replaygain));

    if (!replaygain)

        return AVERROR(ENOMEM);



    replaygain->track_gain = tg;

    replaygain->track_peak = tp;

    replaygain->album_gain = ag;

    replaygain->album_peak = ap;



    return 0;

}

int ff_replaygain_export_raw(AVStream *st, int32_t tg, uint32_t tp,

                             int32_t ag, uint32_t ap)

{

    AVReplayGain *replaygain;



    if (tg == INT32_MIN && ag == INT32_MIN)

        return 0;



    replaygain = (AVReplayGain*)ff_stream_new_side_data(st, AV_PKT_DATA_REPLAYGAIN,

                                                        sizeof(*replaygain));

    if (!replaygain)

        return AVERROR(ENOMEM);



    replaygain->track_gain = tg;

    replaygain->track_peak = tp;

    replaygain->album_gain = ag;

    replaygain->album_peak = ap;



    return 0;

}

int FUNC_0(AVStream *VAR_0, int32_t VAR_1, uint32_t VAR_2,

                             int32_t VAR_3, uint32_t VAR_4)

{

    AVReplayGain *replaygain;



    if (VAR_1 == INT32_MIN && VAR_3 == INT32_MIN)

        return 0;



    replaygain = (AVReplayGain*)ff_stream_new_side_data(VAR_0, AV_PKT_DATA_REPLAYGAIN,

                                                        sizeof(*replaygain));

    if (!replaygain)

        return AVERROR(ENOMEM);



    replaygain->track_gain = VAR_1;

    replaygain->track_peak = VAR_2;

    replaygain->album_gain = VAR_3;

    replaygain->album_peak = VAR_4;



    return 0;

}

int FUNC_0(AVStream *VAR_0, int32_t VAR_1, uint32_t VAR_2,
int32_t VAR_3, uint32_t VAR_4)
{ AVReplayGain *replaygain; if (VAR_1 == INT32_MIN && VAR_3 == INT32_MIN)
return 0; replaygain = (AVReplayGain*)ff_stream_new_side_data(VAR_0, AV_PKT_DATA_REPLAYGAIN,
sizeof(*replaygain)); if (!replaygain)
return AVERROR(ENOMEM); replaygain->track_gain = VAR_1; replaygain->track_peak = VAR_2; replaygain->album_gain = VAR_3; replaygain->album_peak = VAR_4; return 0; }