MantisBT - VCMI
View Issue Details
0000779VCMISound, music, videospublic2011-07-27 19:002014-05-30 17:41
exine 
Ivan 
normaltweakalways
closedfixed 
 
0.9 
0000779: Removing deprecated use of libavformat's API
Please assign it to me.
Compile with new avformat
Current status:

CVideoHandler.cpp: In constructor 'CVideoPlayer::CVideoPlayer()':
CVideoHandler.cpp:661:2: warning: 'int av_register_protocol2(URLProtocol*, int)' is deprecated (declared at /usr/include/libavformat/avio.h:247)
CVideoHandler.cpp:661:59: warning: 'int av_register_protocol2(URLProtocol*, int)' is deprecated (declared at /usr/include/libavformat/avio.h:247)
No tags attached.
patch avformat_deprecation_part1.patch (1,099) 2011-07-27 21:18
https://bugs.vcmi.eu/file_download.php?file_id=762&type=bug
Issue History
2011-07-27 19:00exineNew Issue
2011-07-27 19:02WarmongerNote Added: 0001887
2011-07-27 19:05WarmongerNote Edited: 0001887bug_revision_view_page.php?bugnote_id=1887#r1365
2011-07-27 19:05exineNote Added: 0001888
2011-07-27 21:18exineFile Added: avformat_deprecation_part1.patch
2011-07-27 21:20exineNote Added: 0001890
2011-07-27 21:21exineNote Edited: 0001890bug_revision_view_page.php?bugnote_id=1890#r1367
2011-08-04 22:15ubuntuxNote Added: 0001900
2011-08-04 22:15ubuntuxStatusnew => closed
2011-08-04 22:15ubuntuxAssigned To => ubuntux
2011-08-04 22:15ubuntuxResolutionopen => fixed
2012-02-16 16:47IvanAssigned Toubuntux =>
2012-02-16 16:47IvanNote Added: 0002172
2012-02-16 16:47IvanStatusclosed => feedback
2012-02-16 16:47IvanResolutionfixed => reopened
2012-02-16 16:47IvanStatusfeedback => confirmed
2012-02-16 16:48IvanDescription Updatedbug_revision_view_page.php?rev_id=1503#r1503
2012-05-13 15:07IvanNote Added: 0002422
2012-05-13 15:07IvanResolutionreopened => open
2012-05-13 15:07IvanDescription Updatedbug_revision_view_page.php?rev_id=1579#r1579
2012-05-13 15:07IvanAdditional Information Updatedbug_revision_view_page.php?rev_id=1581#r1581
2012-08-21 17:26IvanAssigned To => Ivan
2012-08-21 17:26IvanStatusconfirmed => assigned
2012-08-21 17:38IvanNote Added: 0002919
2012-08-21 17:38IvanStatusassigned => resolved
2012-08-21 17:38IvanFixed in Version => 0.9
2012-08-21 17:38IvanResolutionopen => fixed
2014-05-30 17:41beegeeStatusresolved => closed

Notes
(0001887)
Warmonger   
2011-07-27 19:02   
(edited on: 2011-07-27 19:05)
Only developers and Zam (who's a moderator here) can have issues assigned to them, sorry ;)

(0001888)
exine   
2011-07-27 19:05   
Ok, don't bother then - I added it here for clarity reasons and so nobody pickes it up - there's no need to duplicate the work ;)
(0001890)
exine   
2011-07-27 21:20   
(edited on: 2011-07-27 21:21)
First patch done, but this isn't end of changes - whole URLProtocol API is deprecated in favour of new AVIOContext:

https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/avio.h#L39 [^]
https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/avio.h#L117 [^]

I'll try to do required changes tomorrow

(0001900)
ubuntux   
2011-08-04 22:15   
Applied. Thanks.
(0002172)
Ivan   
2012-02-16 16:47   
Reopening. Patch is incomplete, all these warnings are still present.
(0002422)
Ivan   
2012-05-13 15:07   
Mostly fixed in rev 2677
(0002919)
Ivan   
2012-08-21 17:38   
Fixed remaining bits in rev. 2835