#7290 closed defect (invalid)
avcodec_receive_frame return error, error code is AVERROR(EAGAIN)
| Reported by: | lpz | Owned by: | |
|---|---|---|---|
| Priority: | normal | Component: | undetermined |
| Version: | git-master | Keywords: | |
| Cc: | Blocked By: | ||
| Blocking: | Reproduced by developer: | no | |
| Analyzed by developer: | no |
Description
i want to use ffmpeg to decode a video file. but when i use avcodec_receive_frame, it return -35, pls help me.
Attachments (1)
Change History (4)
by , 7 years ago
comment:1 by , 7 years ago
comment:2 by , 7 years ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
It is perfectly normal if avcodec_receive_frame returns EAGAIN, it only means you must feed additional packets to the decoder with avcodec_send_packet before you can receive frames.
Please read the API docs.
comment:3 by , 7 years ago
| Component: | avcodec → undetermined |
|---|---|
| Keywords: | AVERROR(EAGAIN) removed |
| Type: | sponsoring request → defect |
Note:
See TracTickets
for help on using tickets.



this is the program output:
➜ splayer git:(master) ✗ gcc av.c -lavcodec -lavformat && ./a.out
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/lpz/splayer/splayer/splayer/ii.mp4':
videoStream = 0
pkt->size = 371. 1
pkt->size = 23171. 0
err ret = -35.-35, -541478725
pkt->size = 372. 1
pkt->size = 4253. 0
err ret = -35.-35, -541478725
pkt->size = 588. 1
pkt->size = 410. 0
err ret = -35.-35, -541478725