Changeset 22796042 in ffmpeg
- Timestamp:
- Dec 16, 2011, 5:55:04 PM (13 years ago)
- Branches:
- master
- Children:
- 3d07e0ab
- Parents:
- 902c0904
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libavcodec/h264.c
r902c0904 r22796042 4047 4047 AVFrame *pict = data; 4048 4048 int buf_index; 4049 Picture *out; 4050 int i, out_idx; 4049 4051 4050 4052 s->flags= avctx->flags; … … 4052 4054 4053 4055 /* end of stream, output what is still in the buffers */ 4056 if (buf_size == 0) { 4054 4057 out: 4055 if (buf_size == 0) {4056 Picture *out;4057 int i, out_idx;4058 4058 4059 4059 s->current_picture_ptr = NULL; … … 4076 4076 } 4077 4077 4078 return 0;4078 return buf_size; 4079 4079 } 4080 4080 if(h->is_avc && buf_size >= 9 && buf[0]==1 && buf[2]==0 && (buf[4]&0xFC)==0xFC && (buf[5]&0x1F) && buf[8]==0x67){ … … 4106 4106 4107 4107 if (!s->current_picture_ptr && h->nal_unit_type == NAL_END_SEQUENCE) { 4108 buf_size = 0; 4108 av_assert0(buf_index <= buf_size); 4109 buf_size = buf_index; 4109 4110 goto out; 4110 4111 }
Note:
See TracChangeset
for help on using the changeset viewer.