On 28/08/15 03:27, Sean McGovern wrote: > Bug-Id: 881 > > CC: [email protected] > --- > As per Martin's request on my previous set -- thanks for the catch! > --- > libavformat/mux.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/libavformat/mux.c b/libavformat/mux.c > index cae8f19..5412d00 100644 > --- a/libavformat/mux.c > +++ b/libavformat/mux.c > @@ -400,6 +400,10 @@ int av_write_frame(AVFormatContext *s, AVPacket *pkt) > > if (ret >= 0) > s->streams[pkt->stream_index]->nb_frames++; > + > + if (ret >= 0 && s->pb && s->pb->error < 0) > + ret = s->pb->error; > + > return ret; > } > >
I'd move that check in the write_packet() function. lu _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
