mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00:00
avformat/dvenc: return error code of dv_assemble_frame()
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
parent
23d06f606e
commit
04172d233d
@ -406,9 +406,10 @@ static int dv_write_packet(struct AVFormatContext *s, AVPacket *pkt)
|
|||||||
|
|
||||||
fsize = dv_assemble_frame(s, s->priv_data, s->streams[pkt->stream_index],
|
fsize = dv_assemble_frame(s, s->priv_data, s->streams[pkt->stream_index],
|
||||||
pkt->data, pkt->size, &frame);
|
pkt->data, pkt->size, &frame);
|
||||||
if (fsize > 0) {
|
if (fsize < 0) {
|
||||||
avio_write(s->pb, frame, fsize);
|
return fsize;
|
||||||
}
|
}
|
||||||
|
avio_write(s->pb, frame, fsize);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user