avformat/crcenc: Simplify writing trailer
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
cb23c1e553
commit
ff02a42394
@ -48,10 +48,8 @@ static int crc_write_packet(struct AVFormatContext *s, AVPacket *pkt)
|
|||||||
static int crc_write_trailer(struct AVFormatContext *s)
|
static int crc_write_trailer(struct AVFormatContext *s)
|
||||||
{
|
{
|
||||||
CRCState *crc = s->priv_data;
|
CRCState *crc = s->priv_data;
|
||||||
char buf[64];
|
|
||||||
|
|
||||||
snprintf(buf, sizeof(buf), "CRC=0x%08"PRIx32"\n", crc->crcval);
|
avio_printf(s->pb, "CRC=0x%08"PRIx32"\n", crc->crcval);
|
||||||
avio_write(s->pb, buf, strlen(buf));
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user