Revision 68d875ad

View differences:

libavformat/utils.c
3088 3088

  
3089 3089
int av_interleaved_write_frame(AVFormatContext *s, AVPacket *pkt){
3090 3090
    AVStream *st= s->streams[ pkt->stream_index];
3091
    int ret;
3091 3092

  
3092 3093
    //FIXME/XXX/HACK drop zero sized packets
3093 3094
    if(st->codec->codec_type == AVMEDIA_TYPE_AUDIO && pkt->size==0)
......
3095 3096

  
3096 3097
    av_dlog(s, "av_interleaved_write_frame size:%d dts:%"PRId64" pts:%"PRId64"\n",
3097 3098
            pkt->size, pkt->dts, pkt->pts);
3098
    if(compute_pkt_fields2(s, st, pkt) < 0 && !(s->oformat->flags & AVFMT_NOTIMESTAMPS))
3099
        return -1;
3099
    if((ret = compute_pkt_fields2(s, st, pkt)) < 0 && !(s->oformat->flags & AVFMT_NOTIMESTAMPS))
3100
        return ret;
3100 3101

  
3101 3102
    if(pkt->dts == AV_NOPTS_VALUE && !(s->oformat->flags & AVFMT_NOTIMESTAMPS))
3102
        return -1;
3103
        return AVERROR(EINVAL);
3103 3104

  
3104 3105
    for(;;){
3105 3106
        AVPacket opkt;

Also available in: Unified diff