Changeset 6510 in orxonox.OLD for branches/avi_play/src/lib/graphics/importer/media_container.cc
- Timestamp:
- Jan 16, 2006, 4:29:04 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/avi_play/src/lib/graphics/importer/media_container.cc
r6486 r6510 25 25 #include "media_container.h" 26 26 27 #include "resource_manager.h" 28 27 29 /* header for debug output */ 28 30 #include "debug.h" … … 82 84 83 85 // Open video file 84 if (av_open_input_file(&format_context, filename, NULL, 0, NULL) !=0 )85 { 86 PRINTF(1)("Could not open %s\n", filename);86 if (av_open_input_file(&format_context, ResourceManager::getFullName(filename), NULL, 0, NULL) !=0 ) 87 { 88 PRINTF(1)("Could not open %s\n", ResourceManager::getFullName(filename)); 87 89 return false; 88 90 } … … 91 93 if (av_find_stream_info(format_context) < 0) 92 94 { 93 PRINTF(1)("Could not find stream information in %s\n", filename);95 PRINTF(1)("Could not find stream information in %s\n", ResourceManager::getFullName(filename)); 94 96 return false; 95 97 } … … 100 102 if(video_stream == -1) 101 103 { 102 PRINTF(1)("Could not find a video stream in %s\n", filename);104 PRINTF(1)("Could not find a video stream in %s\n", ResourceManager::getFullName(filename)); 103 105 return false; 104 106 } 105 107 106 108 // Get a pointer to the codec context for the video stream 107 // NOTE: different code for the 0.4.9-pre1 release of ffmpeg (tardis)108 // codec_context = &format_context->streams[video_stream]->codec;109 109 codec_context = format_context->streams[video_stream]->codec; 110 110
Note: See TracChangeset
for help on using the changeset viewer.