ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Patch your usb_cam.cpp. This should fix the error.

=================================================================== --- usb_cam.cpp (revision 628) +++ usb_cam.cpp (working copy) @@ -296,6 +296,7 @@ avpicture_alloc((AVPicture *)avframe_rgb, PIX_FMT_RGB24, image_width, image_height);

avcodec_context->codec_id = CODEC_ID_MJPEG; + avcodec_context->codec_type = AVMEDIA_TYPE_VIDEO; avcodec_context->width = image_width; avcodec_context->height = image_height;

Patch your usb_cam.cpp. This should fix the error.

=================================================================== --- usb_cam.cpp (revision 628) +++ usb_cam.cpp (working copy) @@ -296,6 +296,7 @@ avpicture_alloc((AVPicture *)avframe_rgb, PIX_FMT_RGB24, image_width, image_height);

avcodec_context->codec_id = CODEC_ID_MJPEG; + avcodec_context->codec_type = AVMEDIA_TYPE_VIDEO; avcodec_context->width = image_width; avcodec_context->height = image_height;image_height;

Patch your usb_cam.cpp. This should fix the error.

 --- usb_cam.cpp (revision 628)
+++ usb_cam.cpp (working copy)
@@ -296,6 +296,7 @@
   avpicture_alloc((AVPicture *)avframe_rgb, PIX_FMT_RGB24, image_width, image_height);

image_height);

avcodec_context->codec_id = CODEC_ID_MJPEG; + avcodec_context->codec_type = AVMEDIA_TYPE_VIDEO; avcodec_context->width = image_width; avcodec_context->height = image_height;