diff --git a/libavformat/rdt.c b/libavformat/rdt.c index 197f9db46e..9b5f1e607a 100644 --- a/libavformat/rdt.c +++ b/libavformat/rdt.c @@ -314,9 +314,9 @@ rdt_parse_packet (AVFormatContext *ctx, PayloadContext *rdt, AVStream *st, return res; if (res > 0) { if (st->codec->codec_id == CODEC_ID_AAC) { - memcpy (rdt->buffer, buf + pos, len - pos); - rdt->rmctx->pb = av_alloc_put_byte (rdt->buffer, len - pos, 0, - NULL, NULL, NULL, NULL); + memcpy (rdt->buffer, buf + pos, len - pos); + rdt->rmctx->pb = av_alloc_put_byte (rdt->buffer, len - pos, 0, + NULL, NULL, NULL, NULL); } goto get_cache; } diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c index f3e51a1731..90f07a4f09 100644 --- a/libavformat/rmdec.c +++ b/libavformat/rmdec.c @@ -691,7 +691,7 @@ ff_rm_retrieve_cache (AVFormatContext *s, ByteIOContext *pb, ast->audiotimestamp = AV_NOPTS_VALUE; pkt->flags = PKT_FLAG_KEY; } else - pkt->flags = 0; + pkt->flags = 0; pkt->stream_index = st->index; return rm->audio_pkt_cnt;