History

Always return 0 if read_packet is successful.

Originally committed as revision 18360 to svn://svn.ffmpeg.org/ffmpeg/trunk

Reimar Döffinger committed 17 years ago

Commit b0723c81 parent ac2b2221 file · +4 −2Browse files

Unified · Split

libavformat/nuv.c+4−2
@@ -226,7 +226,8 @@ static int nuv_packet(AVFormatContext *s, AVPacket *pkt) { · 225 unmodified lines
226226 pkt->stream_index = ctx->v_id;
227227 memcpy(pkt->data, hdr, copyhdrsize);
228228 ret = get_buffer(pb, pkt->data + copyhdrsize, size);
229− return ret;
229+ if (ret < 0) return ret;
230+ return 0;
230231 case NUV_AUDIO:
231232 if (ctx->a_id < 0) {
232233 av_log(s, AV_LOG_ERROR, "Audio packet in file without audio stream!\n");
@@ -238,7 +239,8 @@ static int nuv_packet(AVFormatContext *s, AVPacket *pkt) { · 5 unmodified lines
238239 pkt->pos = pos;
239240 pkt->pts = AV_RL32(&hdr[4]);
240241 pkt->stream_index = ctx->a_id;
241− return ret;
242+ if (ret < 0) return ret;
243+ return 0;
242244 case NUV_SEEKP:
243245 // contains no data, size value is invalid
244246 break;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t