Opened 16 years ago
Closed 16 years ago
#4851 closed patch (fixed)
MythPhone fix for loopback test mode
Reported by: | Owned by: | Isaac Richards | |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | mythphone | Version: | unknown |
Severity: | low | Keywords: | |
Cc: | Ticket locked: | no |
Description
The loopback test mode in mythphone is no longer working.
The avcodec_encode_video(..) call was returning -1. This was due to the pictureOut AVFrame not being initialized correctly. Specifically the pts was not initialized correctly.
The fix in the attached patch switches pictureOut to be a pointer to AVFrame and then uses avcodec_alloc_frame() to allocate and correctly initialize all the fields including pts.
I suspect this bug was revealed by one of the ffmpeg sync ups.
Attachments (2)
Change History (4)
Changed 16 years ago by
Attachment: | mythphone_loopback_fix.diff added |
---|
comment:1 Changed 16 years ago by
Note: See
TracTickets for help on using
tickets.
Updated patch v2.
Calling avcodec_get_frame_defaults() to initialize pictureOut.pts is a simpler fix for the problem.